I am using RapidJSON to parse JSON data except I can't work out how to loop through the members of:
{
"members":{
"0":{
"template":"this is member 1"
},
"1":{
"template":"this is member 2"
}
}
}
I tried the following
e_doc["members"][iString]["template"].GetString()
inside a loop with converting the loop index (i) to a string but it doesn't recognize it as a string.
It works as:
printf("%s", e_doc["members"]["0"]["template"].GetString());
printf("%s", e_doc["members"]["1"]["template"].GetString());