Automattic\WooCommerce\Vendor\GraphQL\Language\AST
Node::jsonSerialize
Improves upon the default serialization by:
- excluding null values
- excluding large reference values such as @see Location::$source.
Method of the class: Node{}
No Hooks.
Returns
Array
Usage
$Node = new Node(); $Node->jsonSerialize(): array;
Node::jsonSerialize() Node::jsonSerialize code WC 10.9.4
public function jsonSerialize(): array
{
return $this->toArray();
}