Skip to main content

decode

Function decode 

Source
pub fn decode(input: &[u8], from: &str) -> Result<Value>
Expand description

Decode bytes into a serde_json::Value.

ยงExample

let json = br#"{"hello": "world"}"#;
let value = formatforge::decode(json, "json").unwrap();