pub fn from_str(s: &str) -> Result<Value>Expand description
Flatten a JSON string
ยงExample
let value = r#"
{
"name": "John Smith",
"age": 24,
"address": {
"country": "US",
"zip": "00000"
},
"phones": [ "123", "456" ]
}
"#;
let result = jsonpointer_flatten::from_str(&value);