Skip to main content

compact_jsonl

Function compact_jsonl 

Source
pub fn compact_jsonl(input: &str) -> Option<String>
Expand description

Compacts JSON Lines (one JSON value per line). Returns Some only when every non-empty line is valid JSON and the joined result is strictly smaller.