pub fn decode(input: &[u8], from: &str) -> Result<Value>
Decode bytes into a serde_json::Value.
serde_json::Value
let json = br#"{"hello": "world"}"#; let value = formatforge::decode(json, "json").unwrap();