How to reorder elements in rapidjson array? I have JSON doc that has Test array with three objects as below
{
"Test":[
{
"a":1,
"b":"DEMO"
},
{
"c":2,
"d":"DEMO1"
},
{
"e":5,
"f":"DEMO2"
}
]
}
Question- How to add one below object at the second position in above Test array without deleting existing object?
{
"x":3,
"y":"DEMO3"
}