| Crates.io | json-syntax |
| lib.rs | json-syntax |
| version | 0.12.5 |
| created_at | 2022-07-01 12:00:05.485065+00 |
| updated_at | 2024-07-03 10:48:42.980465+00 |
| description | Strict JSON parsing and mapping library |
| homepage | |
| repository | https://github.com/timothee-haudebourg/json-syntax |
| max_upload_size | |
| id | 617101 |
| size | 617,439 |
This library provides a strict JSON parser as defined by
RFC 8259 and
ECMA-404.
It is built on the locspan library
so as to keep track of the position of each JSON value in the parsed
document.
json-number crate,
their precision is not limited.smallstr crate.canonicalization feature.serde support (by enabling the serde feature).use std::fs;
use json_syntax::{Value, Parse, Print};
let filename = "tests/inputs/y_structure_500_nested_arrays.json";
let input = fs::read_to_string(filename).unwrap();
let mut value = Value::parse_str(&input, |span| span).expect("parse error");
println!("value: {}", value.pretty_print());
Licensed under either of
at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.