json-rust
json-rust copied to clipboard
JSON implementation in Rust
I just ran https://github.com/nst/JSONTestSuite to see how we're doing, and I saw that json-rust is accepting this [sample that's supposed to fail parsing](https://github.com/nst/JSONTestSuite/blob/master/test_parsing/n_structure_whitespace_formfeed.json). According to the [grammar](https://tools.ietf.org/html/rfc7159#section-2), the allowed whitespace...
I am considering using this library to facilitate syntax highlighting capabilities. I understand you currently report line / col numbers for syntax errors. However, I am interested in reporting errors...
Currently, simply reading a file to a `JsonValue` involves quite some boilerplate: ```rust let mut contents = String::new(); let mut file = File::open(some_path)?; file.read_to_string(&mut contents)?; let json = json::parse(&contents)?; ```...
It shouldn't be too difficult to implement all the arithmetic `std::ops` for `Number`, multiplication is already done but commented. Addition and subtraction needs to be able to level the exponent...
Implement [ops traits](https://doc.rust-lang.org/std/ops/#traits) to make working with numbers easy: ``` rust let data = object!{ foo => 10 }; data["foo"] += 1; assert_eq(data.dump(), r#"{"foo":11}"#); ```
JavaScript's JSON.parse doesn't lose precision from my tests. Test case below: ``` rust #[test] fn large_precision() { assert_eq!(parse("0.004750000000000001").unwrap().as_f64().unwrap(), 0.004750000000000001); } ```
Look at attachments at #83.
I think the current the examples in README are trying to explain too many things at once. The first example in particular is pretty odd. I need to rework it...
Can we implement Serde (Bson) so we can use it with Mongodb driver
Is it possible to have a way of retrieving all keys and or values under some defined level, as for example `{ "Name": "X" "PN": 12345678, "House": { "Address": "some...