smooth-json 0.1.0

Flatten serde_json Value variants into serde_json Objects ready for use in columnar or table like usages.
Documentation

smooth-json

This crate allows for flattening JSON objects into objects ready for use in Parquet, CSV, or other or data data styles.

The flattening is similar to ElasticSearch's ingestion flattening or what would be needed for VAST's DB and Table integrations.

Features

  • Flatten serde_json's Value variants into structures suitable for use with applications that are expecting data or columnar data formats.

Examples

let input: Value = json!({
    "a": [
        {
            "b": ["1"]
        }
    ]
});

let result: Value = flatten(&input, None);
/*
{
    "a.b": [1]
}
*/