serdejsonutils

Linux Arm7 Linux x86_64 macOS intel Windows

Utility functions for serde_json::Value.

Requirements

Usage

toml [dependencies] serde-json-utils = "0.2.0"

Example

const DATA: &str = r###" [ { "key1": null, "key2": "there is a value", "key3": {}, "key4": [], "key5": [1, 2, 3, 3] }, { "key1": "value in here", "key2": null }, { "key1": "value in here", "key2": null } ] "###;

fn main() { let mut val: Value = fromstr(DATA).unwrap(); skipnullandempty(&mut val);

println!("{:#?}", val);

} ```


License: MIT