<story><title>JSON for Modern C++</title><url>https://github.com/nlohmann/json</url></story><parent_chain><item><author>vips7L</author><text>Does anyone write C++ and not care about performance?</text></item><item><author>Kh4L</author><text>On the other hand, nlohmann&amp;#x2F;json has a cleaner and more Python-like API, so if you don&amp;#x27;t care about performance that much, I&amp;#x27;d say it&amp;#x27;s the way to go</text></item><item><author>einpoklum</author><text>How does this compare with RapidJSON, JSONCpp and JSON Spirit - other popular C++ JSON parser libraries?&lt;p&gt;Links:&lt;p&gt;&lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;rapidjson.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;rapidjson.org&amp;#x2F;&lt;/a&gt;
&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Tencent&amp;#x2F;rapidjson&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Tencent&amp;#x2F;rapidjson&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;open-source-parsers&amp;#x2F;jsoncpp&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;open-source-parsers&amp;#x2F;jsoncpp&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.codeproject.com&amp;#x2F;Articles&amp;#x2F;20027&amp;#x2F;JSON-Spirit-A-C-JSON-Parser-Generator-Implemented&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.codeproject.com&amp;#x2F;Articles&amp;#x2F;20027&amp;#x2F;JSON-Spirit-A-C-J...&lt;/a&gt;</text></item></parent_chain><comment><author>polymonster</author><text>We use C++ and care about real time performance, but also use this JSON library, the thing is that we use JSON for loading and configuring data which happens during load time which is infrequent and don’t need JSON during the critical update path.&lt;p&gt;Previously we used rapid json which is faster but the syntax of the nlohmann json is nicer and it is much quicker to develop with.. we also use python a lot so the familiarity between the 2 is also useful, some of the other C++ json libs can have quite convoluted api’s for dealing with values, objects and arrays.</text></comment>
<story><title>JSON for Modern C++</title><url>https://github.com/nlohmann/json</url></story><parent_chain><item><author>vips7L</author><text>Does anyone write C++ and not care about performance?</text></item><item><author>Kh4L</author><text>On the other hand, nlohmann&amp;#x2F;json has a cleaner and more Python-like API, so if you don&amp;#x27;t care about performance that much, I&amp;#x27;d say it&amp;#x27;s the way to go</text></item><item><author>einpoklum</author><text>How does this compare with RapidJSON, JSONCpp and JSON Spirit - other popular C++ JSON parser libraries?&lt;p&gt;Links:&lt;p&gt;&lt;a href=&quot;http:&amp;#x2F;&amp;#x2F;rapidjson.org&amp;#x2F;&quot; rel=&quot;nofollow&quot;&gt;http:&amp;#x2F;&amp;#x2F;rapidjson.org&amp;#x2F;&lt;/a&gt;
&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Tencent&amp;#x2F;rapidjson&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;Tencent&amp;#x2F;rapidjson&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;open-source-parsers&amp;#x2F;jsoncpp&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;github.com&amp;#x2F;open-source-parsers&amp;#x2F;jsoncpp&lt;/a&gt;&lt;p&gt;&lt;a href=&quot;https:&amp;#x2F;&amp;#x2F;www.codeproject.com&amp;#x2F;Articles&amp;#x2F;20027&amp;#x2F;JSON-Spirit-A-C-JSON-Parser-Generator-Implemented&quot; rel=&quot;nofollow&quot;&gt;https:&amp;#x2F;&amp;#x2F;www.codeproject.com&amp;#x2F;Articles&amp;#x2F;20027&amp;#x2F;JSON-Spirit-A-C-J...&lt;/a&gt;</text></item></parent_chain><comment><author>dguest</author><text>On the other hand: I&amp;#x27;m a bit surprised at how many people are writing JSON and care about the performance.&lt;p&gt;The overwhelming majority of our IO is reading &amp;#x2F; writing data files, but those are stored in an optimized binary format. The configuration &amp;#x2F; metadata accounts for a much smaller fraction of IO. For this tiny fraction we care about flexibility and readability, a slow JSON parser is fine.</text></comment>