serde-rs/json
View on GitHub ↗ ★ 5,661 Rust
Strongly typed JSON library for Rust
16 mentions on Hacker News by 16 people: 1 story, 15 comments · first 2016-07-07 · latest 2025-03-13
20082026
-
> Does rust have good deserializers for json and xml? yes. https://github.com/serde-rs/json > Can you work well with a rust application that interacts with react? can you write an API-server in Rust? sure. or what do you mean?
comment by indeyets · 2025-03-13 · in Is Rust a good fit for business apps? -
…it might help to compare and take notes from a popular, well-established, benchmarked library: https://github.com/serde-rs/json .
comment by InfinityByTen · 2025-02-19 · in Parsing JSON in 500 lines of Rust -
It has 5 dependencies, one of which is optional, and another is serde itself: https://github.com/serde-rs/json/blob/master/Cargo.toml indexmap = { version = "2.2.3", optional = true } itoa = "1.0" memchr = { version = "2", default-features…
comment by ninkendo · 2024-08-23 · in I sped up serde_json strings by 20% -
Oh wow. So serde_json doesn't roundtrip floats by default, it uses some imprecise faster algorithm https://github.com/serde-rs/json/issues/707 Good thing there's msgpack I guess.
comment by 01HNNWZ0MV43FF · 2024-04-01 · in What even is a JSON number? -
…serde-json has a limit on size. But under some usages it will allocate extra. For example see: https://github.com/serde-rs/json/issues/160#issuecomment-841... 2.4 GB file can be read and parsed with serde.
comment by Ygg2 · 2023-03-27 · in Zig and Rust -
…are overused in Rust and are highly expensive in memory IMHO. One tends to run into problems like: https://github.com/serde-rs/json/issues/635 in Rust projects when used at scale. Value is an enum variant:…
comment by lenkite · 2023-03-27 · in Zig and Rust -
…library to serialise and deserialise json. You asked me to find “one Rust repo”. Ok here it is - https://github.com/serde-rs/json/search?q=unwrap&type= . Of the 22 uses of unwrap, nearly all are in test code or in comments. Of the…
comment by nindalf · 2022-05-06 · in Bugs that the Rust compiler catches for you -
…out of Serde you have to use from_str or from_slice, regardless of if you pass a BufRead to it. https://github.com/serde-rs/json/issues/160
comment by sitta · 2021-12-24 · in Unbuffered I/O Can Make Your Rust Programs Much Slower -
The recursion limit in the deserializer is a deliberate one https://github.com/serde-rs/json/pull/163
comment by eptcyka · 2019-11-08 · in Bad JSON Parsers -
Have you ever used serde-json[0]? [0] https://github.com/serde-rs/json
comment by cptroot · 2019-08-17 · in Parsing JSON Is a Minefield (2018) -
…the Xi core is developed in) has static typing for JSON, as well as other serialization formats: https://github.com/serde-rs/json
comment by wwright · 2019-02-22 · in Simdjson – Parsing Gigabytes of JSON per Second -
…consider that lib any safer than the average serialization library when things like this happen: https://github.com/serde-rs/json/issues/464
comment by hu3 · 2019-01-10 · in Thoughts on Rust, a few thousand lines in -
…all the fields in the JSON in the struct. Serde will only give you the ones defined by the struct. https://github.com/serde-rs/json/blob/master/README.md
comment by _hardwaregeek · 2019-01-09 · in Thoughts on Rust, a few thousand lines in -
…serialization format; the example I linked uses serde_json, and was adapted from its README here https://github.com/serde-rs/json
comment by somenewacc · 2017-07-31 · in Elm in Production: 25K Lines Later -
…implement whatever you want by just using Serde directly without having to generate parsers. [1]: https://github.com/serde-rs/json [2]: https://github.com/serde-rs/json/blob/master/json_tests/benc... [3]:…
comment by erickt · 2016-07-07 · in Announcing Rust 1.10