JSON for Classic C++ json.cpp is a traditional JSON parsing/serialization library for C++, contrasting with the modern https://github.com/nlohmann/json/. It boasts faster performance, especially evident in complex JSON examples, parsing 39x faster with gcc -O3 on Ubuntu 14.04 with an AMD Ryzen Threadripper PRO 7995WX. The library’s appeal lies in being faster, compiling 10x quicker, containing significantly less code than its modern counterpart, and better conformance with JSONTestSuite. Noteworthy is the use of Google’s double-conversion library for efficient serialization of 32-bit floating point numbers, ideal for applications like HTTP servers. Additionally, usage examples from the llamafile project highlight its practical application.
https://github.com/jart/json.cpp