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

Heya! Since I borrowed most of the encoding logic for simd-json.rs from just-rust I wanted to contribute back. I improved the write-string logic to use simd instructions to speed up...

I'm trying to parse json data from gpsd. Gpsd provides series of jsons over the socket: {"class":"TPV","tag":"GLL","device":"/dev/pts/17","mode":2,"time":"2016-02-12T15:45:52.000Z","ept":0.005,"lat":48.268635783,"lon":14.211360400,"speed":70.000} {"class":"TPV","tag":"GGA","device":"/dev/pts/17","mode":3,"time":"2016-0212T15:45:52.000Z","ept":0.005,"lat":48.268635783,"lon":14.211360400,"alt":7.000,"epv":115.000,"speed":70.000} {"class":"TPV","tag":"RMC","device":"/dev/pts/17","mode":3,"time":"2016-02-12T15:45:52.000Z","ept":0.005,"lat":48.268635783,"lon":14.211360400,"alt":7.000,"epv":115.000,"track":195.8000,"speed":70.016,"climb":0.000} Unfortunately, json::parse does not return "how many bytes it parsed" so...

In https://github.com/binast/binjs-ref/issues/232, we fail to parse a JSON document because of an `ExceededDepthLimit`. It would be useful to be able to customize the depth limit.

```json {"entity_number":17,"name":"medium-electric-pole","position":{"x":2222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222222}} ``` Attempting to parse this json using the `as_i32` method results in: ``` thread 'main' panicked at 'attempt to multiply with overflow', /rustc/daa53a52a2667533d5fe59bfcc5b8614b79c3d31/src/libcore/num/mod.rs:3554:24 stack backtrace: 0: std::sys::unix::backtrace::tracing::imp::unwind_backtrace at...

``` let data = array.into_iter().map( |item| { object! { "ex_id" => 1, "ex_order_id" => &item[""], "ex_execution_id" => &item[""], "side"=> &item[""], "price"=> &item[""], "size"=> &item[""], "t_execution"=> &item[""], "fee"=> &item[""], "fee_currency"=> &item[""],...

I'm trying to iterate through the entries of an object (that I own) and consume them. However I'm only able to get borrowed access to the entries. Since I own...

Recently the Spidermonkey JS engine implemented a change to JSON.stringify that emits lone unicode surrogates as escaped rather than unescaped. This causes a parsing failure with json-rust. The people behind...

Hello, `u128` is stable, may I ask if you could consider adding support for it? Thank you,

It's impossible to remember which of `entries()` and `members()` operates on arrays and which on objects. Maybe that's because those words are functionally synonyms. Consider renaming them `iter_array()` and `iter_object()`.

When I dump my json object, I would like to control how much precision it outputs with. This is useful because as a transit format, I don't want huge payloads...