A lightweight JSON parser library using C++20.
Source
https://github.com/karnkaul/djson
Features
- First-in/first-out object maps
- Fast conversion of strings to numbers using
std::from_chars - Copiable
Jsonobjects - Proxy containers for array/object iteration
std::string_viewinterface to minimize redundantstd::stringcopies- Heterogenous arrays
- Escaped text (
\\,\",\b,\t,\n) - Implicit construction for nulls, booleans, numbers, strings
- Serialization, pretty-print (default)
- Customization points for
from_jsonandto_json - Build tree from scratch