Show HN: Yet another JSON lib (C++17)
2 GeorgeHaldane 0 7/3/2025, 10:31:21 AM github.com ↗
Hello HN.
There is no shortage of excellent JSON libraries out there, so initially this one was built mostly out of curiosity for writing parsers.
JSON proved to be a quite pleasant format to work with so eventually this project evolved into a proper feature complete lib with an API quite similar to nlohmann_json, but much better performance (~2x-5x depending on the workload) and a very concise codebase (single header ~1k L.O.C., slightly larger than picojson), in short:
- Concise single-header JSON lib
- All JSON types map to std:: containers
- Performance better than nlohmann_json / picojson, some metrics even beat RapidJSON
- Supports reflection
- Supports conversions for custom containers
The lib itself was mostly completed a few months ago, but now that it has proper CMake and CI tests different platforms I feel it is appropriate to post it here. Would love to hear some feedback on the design.https://github.com/DmitriBogdanov/UTL/blob/master/docs/modul...
No comments yet