Function parse_json

Source
pub fn parse_json(text: &str) -> ParseResult<Tree>
Expand description

Parse a json text:

Example

let text = "{ \"foo\": \"bar\" }";
match parse_json(&text) {
    Ok(tree) => println!("{:?}", tree),
    Err(e) => println!("{:?}", e),
};