samedi 27 juin 2015

how to store a collection of string as key and json as value in c++

I am trying to store a collection of key-value pair in cpp where key will be a string and value will be a json object.

Then I need to access this json object using Key1 For Example

Key1 = "name1" 
Value1 = {name:"Anil Gautam","age":25}
Key2 = "name2" 
Value**strong text** = {name:"Sharan Gupta","age":26}

I want to access

{name:"Anil Gautam","age":25} 

when I input "name1". What Can I possible do to store this kind of data in cpp.

Aucun commentaire:

Enregistrer un commentaire