Skip to content

OneMeterCom/json-cpp

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

make
_build/demo_simple

Example

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

Packages

No packages published

Languages

  • C++ 99.3%
  • Other 0.7%