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),
};pub fn parse_json(text: &str) -> ParseResult<Tree>Parse a json text:
Example
let text = "{ \"foo\": \"bar\" }";
match parse_json(&text) {
Ok(tree) => println!("{:?}", tree),
Err(e) => println!("{:?}", e),
};