toJsonImpl
Recursive JSON serialization implementation.
Writes the JSON representation of a CdmNode to the given appender. TAG nodes are serialized as objects with (#name, #ns, #values, and @attr keys).
Parameters
node | The CdmNode to serialize. |
app | Output string appender. |
indent | Current indentation level. -1 means compact (no whitespace); >= 0 means pretty-print with 2-space indent per level. |