Skip to main content

fold_json

Function fold_json 

Source
pub fn fold_json(input: &[u8]) -> Result<Vec<u8>, JsonFoldError>
Expand description

Folds arrays of homogeneous objects in input into columnar {__tf_cols__, __tf_rows__} form. No-op-safe: empty input returns empty; input with no foldable arrays returns a (compact) re-serialization with the same data.