jsonc-parser icon indicating copy to clipboard operation
jsonc-parser copied to clipboard

JSONC parser for Rust

Results 6 jsonc-parser issues
Sort by recently updated
recently updated
newest added

Adding properties should be as easy as calling `obj.add_property`. Maybe consider converting to a CST

I'd really like a way to deserialize into a struct while seeing the line/column of errors when there's an invalid type. With `serde_json::from_str` I parse a string directly into a...

While this is a JSON5 feature rather than JSONC, the parser seems to implement support but fails?: ```rs let parsed = jsonc_parser::parse_to_value(r#"{ "test": +42 }"#, &Default::default()); println!("{:#?}", parsed); ``` Outputs...

In accordance with [RFC 8258 § 7](https://datatracker.ietf.org/doc/html/rfc8259#section-7), the non-BMP character `𝄞` (U+1D11E) should be escaped as the escaped surrogate pair `\uD834\uDD1E`. Therefore, I expect the following Rust code to compile...

bug

Like `Ranged::text()`, taking the original text, it would be great to be able to return a `(usize, usize)` that returns a line and column variant, which is more used when...

For example: ``` Line 1, column 1: Unexpected word class Test { ~~~~~~ ``` Or ``` Line 2, column 13: Unexpected word "test": asdf ~~~~~ ``` For: ```json { "test":...

bug
help wanted