jsonc-parser

JSONC parser implemented in Rust.

Example

To a simple JsonValue:

```rs use jsoncparser::parseto_value;

let jsonvalue = parsetovalue(r#"{ "test": 5 } // test"#)?; // check the jsonvalue here ```

Or an AST:

```rs use jsoncparser::{parseto_ast, ParseOptions};

let parseresult = parsetoast(r#"{ "test": 5 } // test"#, &ParseOptions { comments: true, // include comments in result tokens: true, // include tokens in result })?; // ...inspect parseresult for value, tokens, and comments here... ```

Or use the "serde" feature:

```toml

in Cargo.toml

jsonc-parser = { version = "...", features = ["serde"] } ```

```rs use jsoncparser::parsetoserdevalue;

let jsonvalue = parsetoserdevalue(r#"{ "test": 5 } // test"#)?; ```