AbstractNode::toJson

The toJson() method converts the current node into a JSON representation, which includes its properties and potentially its children, depending on the node type. It internally utilizes the NodeJsonEncoder class.

Description

public AbstractNode::toJson(): string

Parameters

None

Return Value

Returns a string that represents the node in JSON format.

Exceptions

None

Source Code
If you find this project useful, consider leaving a on GitHub! Thank you!