toJsonImpl

private fnvoid toJsonImpl( const ref CdmNode node, ref Appender!string app, int indent ) @safe

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

nodeThe CdmNode to serialize.
appOutput string appender.
indentCurrent indentation level. -1 means compact (no whitespace); >= 0 means pretty-print with 2-space indent per level.