Expand description
JSON / JSONL minifiers (v0.2). Comment-free formats: the
MinifyOptions::keep_comments flag is a no-op here.
Functions§
- minify_
json - Parse
sourceas a single JSON document and re-serialize compactly. Whitespace, newlines, and indentation are dropped; field order is preserved (viaserde_json’spreserve_orderfeature). - minify_
jsonl - Parse
sourceas JSONL — one JSON document per line. Empty and whitespace-only lines are dropped from the output. If any line fails to parse, the whole minification fails (caller emits the original block verbatim).