Automattic\WooCommerce\Vendor\GraphQL\Language\AST

Node::jsonSerializepublicWC 1.0

Improves upon the default serialization by:

  • excluding null values
  • excluding large reference values such as @see Location::$source.

Метод класса: Node{}

Хуков нет.

Возвращает

Массив<Строку,. mixed>

Использование

$Node = new Node();
$Node->jsonSerialize(): array;

Код Node::jsonSerialize() WC 10.9.1

public function jsonSerialize(): array
{
    return $this->toArray();
}