Live data from Hacker News

JSON for Modern C++

github.com

1–10 of 125 posts

Re: JSON for Modern C++

#2
Kudos on the very thorough readme, complete with CMake instructions, most of the time people take it for granted that you know how to embed libraries and dependencies.

Writing documentation, and easing users into your project, is an underrated skill.

Re: JSON for Modern C++

#5

Kudos on the very thorough readme, complete with CMake instructions, most of the time people take it for granted that you know how to embed libraries and dependencies. Writing documentation, and easing users into your project, is an underrated skill.

Actually, a detailed documentation belongs in a Wiki or a separate markdown document, that README.md is a bit much...

Re: JSON for Modern C++

#8

> In languages such as Python, JSON feels like a first class data type. Is that because the python dictionary happens to looks so much like json, or what do they mean?

Yeah, that's probably what they meant.

Re: JSON for Modern C++

#9

How does this compare with RapidJSON, JSONCpp and JSON Spirit - other popular C++ JSON parser libraries? Links: http://rapidjson.org/ https://github.com/Tencent/rapidjson https://github.com/open-source-parsers/jsoncpp https://www.codeproject.com/Articles/20027/JSON-Spirit-A-C-J...

We used to use. We first micro-benchmarked all those and we found that Tencent/rapidjson was more than 100% faster than nlohmann/json :)

Our primary use is to parse http://cocodataset.org/ metadata files and RapidJson is 100% faster.

Re: JSON for Modern C++

#10

> In languages such as Python, JSON feels like a first class data type. Is that because the python dictionary happens to looks so much like json, or what do they mean?

Yes, though more the other way around: part of json's appeal (on purpose) is that it covers the core subtypes of most dynamically typed programming languages (strings, number, booleans, arrays and maps), so moving data to and from json is straightforward and convenient.
Post reply on HN