The dxjson C++ library provides an easy interface to represent and handle JSON objects in C++.
Please take a look at dx::JSON class documentation.