Simple C++ serialization library for application configurations, with JSON and NVS support.
Uses RapidJSON library for serialization.
Library must be provided by a parent project.
These definitions are mandatory, otherwise rapidjson allocates whole 64KB on heap, when it needs only few hundred bytes:
-D RAPIDJSON_HAS_STDSTRING=1
-D RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY=1024
For CMake, set them at ideally at library import, via
target_compile_definitions(rapidjson INTERFACE RAPIDJSON_HAS_STDSTRING=1 RAPIDJSON_ALLOCATOR_DEFAULT_CHUNK_CAPACITY=1024)