json-rust icon indicating copy to clipboard operation
json-rust copied to clipboard

JSON implementation in Rust

Results 69 json-rust issues
Sort by recently updated
recently updated
newest added

``` 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...

enhancement

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!["fii",...

The documentation is not clear about the order in which the entries of a JSON object will be iterated through the `JsonValue::entries` method. Is it a lexicographic order? Order of...

documentation

It would be really helpful for my use case if there were a way to allow data after the JSON, and to report how much JSON was actually read. For...

Both `as_object` and `as_array` make sense, would be great to have them. This is what I'm using currently: ```rust pub(super) fn json_as_array(val: &JsonValue) -> Option { match val { JsonValue::Array(val)...

Just convenience helpers, similar to the standard library's `HashMap` etc - useful when e.g. checking that a certain key is present or not.

Just a quick idea, this would be nice for those cases when you have to generate an error `"expected a list, got {}"` (and maybe a few other similar cases)...

Hi, Thanks for all your great work on _json-rust_! I recently needed a way of writing a json object with highlights on certain slices for my work on [gmmorris/jg](https://github.com/gmmorris/jg). To...