json-rust
json-rust copied to clipboard
JSON implementation in Rust
``` Finished dev [unoptimized + debuginfo] target(s) in 1.51s Running `target\debug\vision_manager.exe` thread 'main' panicked at 'attempt to negate with overflow', C:\Users\quydx\.cargo\registry\src\github.com-1ecc6299db9ec823\json-0.12.4\src\number.rs:495:1 stack backtrace: 0: backtrace::backtrace::trace_unsynchronized at C:\Users\VssAdministrator\.cargo\registry\src\github.com-1ecc6299db9ec823\backtrace-0.3.46\src\backtrace\mod.rs:66 1: std::sys_common::backtrace::_print_fmt at...
The [decimal crate](https://crates.io/crates/decimal) implements decimal floating point arithmetic in rust. JSON supports decimal numbers. It would be nice if there were an obvious way of how to serialize (and deserialize)...
I'm wondering why `Eq` is not implemented for the `Number` struct. At first, I thought it was because `Number` can also represent `NaN` for which we usually expect that `NaN...
When trying to match the elements of a Json array by their type, it seems it is not (easily) possible to do it for strings: ```rust let data = array. To...