Hacker GitHub

← All repos

nlohmann/json

View on GitHub ↗ ★ 50,834 C++

JSON for Modern C++

38 mentions on Hacker News by 32 people: 14 stories, 24 comments · first 2015-01-04 · latest 2025-05-17

Mentions per year 38 mentions · busiest year 2017 (5)
20082026
  1. …["pthread", "dl"] ` Dependency Management Add a Git repo directly: [dependencies] json = { git = " https://github.com/nlohmann/json.git ", tag = "v3.11.2" } Or use a local path: [dependencies] mylib = { path = "../mylib" } Zyn will lock…
    comment by zyntraxis · 2025-05-17
  2. nlohmann::json also does msgpack and is header-only, and it's the most popular JSON lib for C++ https://github.com/nlohmann/json?tab=readme-ov-file#design-g...
  3. …nostalgia survives the process. I have used this library in the past and was actually pretty easy https://github.com/nlohmann/json
  4. https://github.com/nlohmann/json I used this for JSON last time I wrote any C++ a few years ago and it still seems popular. It seemed sane enough to me.
    comment by sublinear · 2024-01-27 · in Sane C++ Libraries
  5. …https://www.learncpp.com But I was actually close to give up before using those two things: - https://github.com/nlohmann/json : my plugin use a json api backend and the Juce json implementation is atrocious (apparently because of being…
    comment by conradfr · 2023-12-26 · in Learn Modern C++
  6. How does it compare to the immensely popular JSON for Modern C++ library by nlohmann? https://github.com/nlohmann/json Also, you should add your library to the JSON benchmarks here: https://github.com/miloyip/nativejson-benchmark#parsing-ti…
    comment by techie2022 · 2022-08-13 · in Show HN: DAW JSON Link
  7. In C++ you get the great https://github.com/nlohmann/json In Rust you have the amazing serde with serde_json but at this point, you can use toml which is also based on serde. I consider serde as being standard. In C you have the lib jason…
  8. …than modern C++ monstrosities like this [1]. [0] http://www.netlib.org/lapack/lug/node24.html [1] https://github.com/nlohmann/json
    comment by qayxc · 2022-01-12 · in Is the madness ever going to end?
  9. Uh, it has plenty of methods for more compact encodings? https://github.com/nlohmann/json#binary-formats-bson-cbor-me...
    comment by tsbinz · 2021-08-19 · in JSON for Modern C++ version 3.10.0
  10. https://github.com/nlohmann/json
    comment by mivade · 2021-08-18 · in Time to retire the CSV?
  11. https://github.com/nlohmann/json/blob/c215b77936591d4fe0aa0a...
  12. The first C++ JSON library that appears when you google it is a single header file. https://github.com/nlohmann/json I know because I used it years ago in school. One of the fastest libraries ( https://github.com/miloyip/nativejson-benchmar…
    comment by bleachisback · 2021-03-02 · in How I cut GTA Online loading times by 70%
  13. The JSON library is impressive: https://github.com/nlohmann/json#examples
    comment by giancarlostoro · 2020-10-28 · in Ask HN: Good C++ code bases to read?
  14. …C++17/C++20 repositories: https://github.com/hanickadot/compile-time-regular-expressio... https://github.com/nlohmann/json If you've not written C++ code before, it can take a while to catch up with the latest developments in C++23. Start…
    comment by artagnon · 2020-10-28 · in Ask HN: Good C++ code bases to read?
  15. …internal API that is more testable (i.e. allows injection, etc.) or whatever is another matter. [0] https://github.com/nlohmann/json
  16. Shameless self-plug: JSON for Modern C++ ( https://github.com/nlohmann/json ) supports CBOR along MessagePack, UBJSON, and BSON, see https://github.com/nlohmann/json#binary-formats-bson-cbor-me... .
  17. …succinct with the newer versions especially when dealing with web related stuff. In addition, the https://github.com/nlohmann/json lib make json just work. No one seems to get that the C++ still works and in nearly all cases is faster,…
    comment by drenvuk · 2019-03-12 · in A JavaScript-Free Front End
  18. …into ClusterFuzz/oss-fuzz. Feel free to get in touch if you have any questions or need help. [1] https://github.com/nlohmann/json/blob/develop/test/src/fuzze... [2] https://github.com/guidovranken/libfuzzer-gv [3]…
    comment by guidovranken · 2019-02-07 · in Open-Sourcing ClusterFuzz
  19. …modified cpp example, along with state machine https://github.com/jorisvink/kore json library https://github.com/nlohmann/json wrk, post with json payload via lua post script https://github.com/wg/wrk
    comment by drenvuk · 2018-09-08 · in GRPC and JSON
  20. …them. Once the file is parsed you can feed it into any regular JSON parser (personally I'm a fan of https://github.com/nlohmann/json ). Using JSMin would have been a much better idea. At this point though the only downside is that I…
  21. …I happened to come across this decoder again recently in Niels Lohmann's JSON library for C++: https://github.com/nlohmann/json I see that this is mentioned in a previous post: https://lemire.me/blog/2018/05/09/how-quickly-can-you-check-...…
  22. In terms of pure syntactic sugar/ease of use, it's hard to beat nlohmann/json: https://github.com/nlohmann/json It may not be as fast as these other guys but it's sure as heck a lot more intuitive and convenient. For casual JSON usage…
    comment by ythn · 2017-05-26 · in Writing a Fast JSON Parser
  23. …is close (until runtime) to the experience I'd expect from ocaml and other functional languages. https://github.com/nlohmann/json
    comment by hedora · 2017-02-06 · in In Defense of C++
  24. Take a look at JSON for Modern C++: https://github.com/nlohmann/json Perhaps this example (benchmark, actually) is close enough: https://github.com/nlohmann/json/blob/master/benchmarks/benc... Note that the above also performs…