I am trying to create a json document using rapidjson but I don't know how I can replicate part of the following document, in particular the nested object starting with "allocations", for the others elements I do
Value valObjectString(kStringType);
valObjectString.SetString("string");
doc.AddMember("string", valObjectString, doc.GetAllocator());
But what about "allocation" and "url" ?
{
"string1": "string",
"string2": "string",
"string3": "string",
"string4": "string",
"string5": "string",
"allocations": [
{
"allocation": "string",
"url": "string"
}
]
}