GitHub - OneMeterCom/json-cpp: JSON for Modern C++

JSON for Modern C++ (lightweight)

This is a lightweight version of the nlohmann/json-cpp. It tracks single_include folder only.

The original repository is very heavy (hundreds of MB). There is no need to track everything just to compile a single file if you use the library as a submodule. That's the main reason why we rewrote the original repo.

Requirements

  • cmake (3.16.3)
  • ninja-build (1.10.0)

Usage

See: CMakeLists.txt and main.cpp in demos/demo_simple.

Run demo

Example

$ _build/demo_simple
{
    "age": 32,
    "gender": "male",
    "name": "Rob",
    "posture": {
        "height": 56,
        "width": 160
    }
}