Skip to main content

serialize_compact_json

Function serialize_compact_json 

Source
pub fn serialize_compact_json(node: &JsonNode) -> String
Expand description

Render a subtree the way json.dumps(value, separators=(",", ":"), ensure_ascii=False) does for the depth-capped subtree scan.

NaN/Infinity/-Infinity are emitted bare, like json.dumps with the default allow_nan=True.