I have a string std::string sub("{\"color\": \"green\",\"type\": \"primary\"}");.
I parse it and the result is:
color:green
type:primary
I want to reorganize the structure to be a valid JSON expression, something like this:
{
"color": "yellow",
"type": "primary"
}
I know that i have to use something like to string method but i don't know how to do this. After this i want to could acces the elemets of the strings, like get(color).
NOTE: my color:green, type:primary are std::map<std::string,string> keyVal type.