I'm stuck with jsoncpp. I would like to create an array like this:
"Cords": [{"x": 10, "y": 20}, {"x": 70, "y": 40}, {"x": 15, "y": 65}]
I managed to do the regular stuff with jsoncpp (see below) but I am stuck in this case of making a JSON array.
Json::Value event;
event["name"] = "Joe";
event["Direction"]["left"]["x"] = "1338";
event["Direction"]["right"]["x"] = "1337";
Edit:
I want to print it all within event.
I do not want to print cords separately.