[Cppcms-users] Setting JSON at the root
Brought to you by:
artyom-beilis
|
From: Abhishek <abh...@gm...> - 2013-09-26 12:00:46
|
Hi All,
Right now, I have seen examples of setting JSON key to set a value, for eg:
my_object["name"]="Moshe";
my_object["salary"]=1000.0;
which creates json like:
{name:"Moshe", salary:"1000.0"}
But what if I want to create a json string like:
{"hello", "world", "value1", value2} ?
I have these values in a std::vector<std::string>
so, how should I create my_object to create json like --> {"hello", "world",
"value1", value2}
|