[][src]Function jsonc_parser::parse_text

pub fn parse_text(text: &str) -> Result<ParseResult, ParseError>

Parses a string containing JSONC to an AST with comments and tokens.

Example

use jsonc_parser::parse_text;

let parse_result = parse_text(r#"{ "test": 5 } // test"#);
// ...inspect parse_result for value, tokens, and comments here...