title: how to write a map as a json object in c++
body: <p>I have a to write a data into the json key and corresponding to that the value. My key is a structure with  two values { int id &amp; char * name}, my value is also a structure with three values { int a, int b, int c }. I intend to put the key in json as { id:name }, and value also separated by delimiter { a:b:c }</p>
  
  <p>How is the conversion done from c++ structure to a json object?  and read this created json object as a map again.</p>