a modern JSON library for C++20 that's convenient to use
(github.com)
from nodeluna@programming.dev to cpp@programming.dev on 24 Jun 2025 16:01
https://programming.dev/post/32796868
from nodeluna@programming.dev to cpp@programming.dev on 24 Jun 2025 16:01
https://programming.dev/post/32796868
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: nodeluna.github.io/ljson
threaded - newest