[−][src]Function jsonc_parser::parse_to_ast
pub fn parse_to_ast(text: &str) -> Result<ParseResult, ParseError>
Parses a string containing JSONC to an AST with comments and tokens.
Example
use jsonc_parser::parse_to_ast; let parse_result = parse_to_ast(r#"{ "test": 5 } // test"#).expect("Should parse."); // ...inspect parse_result for value, tokens, and comments here...