Hacker GitHub

← All repos

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

Mentions per year 16 mentions · busiest year 2019 (5)
20082026
  1. > 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?
  2. …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
  3. 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%
  4. 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?
  5. …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
  6. …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
  7. …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…
  8. …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
  9. 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
  10. 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)
  11. …the Xi core is developed in) has static typing for JSON, as well as other serialization formats: https://github.com/serde-rs/json
  12. …consider that lib any safer than the average serialization library when things like this happen: https://github.com/serde-rs/json/issues/464
  13. …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
  14. …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
  15. …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