Skip Navigation

a modern JSON library for C++20 that's convenient to use

github.com

GitHub - nodeluna/ljson: an easy to use header only JSON library for C++20

It's not fully finished yet, but it's getting there, and i didn't write documentation beyond the README.md and tests/test.cpp but I'd like some feedback on it.

features

  • It's a header only library that's currently < 3000 loc
  • no 3rd-party dependencies
  • support for being imported as a module
  • supports inserting std containers into json nodes
  • highly type safe, which is made possible by using concepts
  • easy-to-use object/array iterations
  • easy-to-use type casting from json value to native c++ types which is enabled by std::variant and concepts
  • exception-free parsing and value casting.
  • modern error handling using "expected" type
  • exception-free node.try_at("key") access
  • and more

edit:

documentation link: https://nodeluna.github.io/ljson

3 comments