Open EkaCreativeSolutions opened 7 years ago
aJsonObject* root = aJson.createArray();
aJsonObject* day; day=aJson.createItem("Monday"); aJson.addItemToArray(root, day);
I would like to add a more complex object:
aJsonObject root = aJson.createObject(); aJsonObject logicalDevices = aJson.createArray(); aJsonObject* device = aJson.createObject(); aJson.addStringToObject(device, "command" , "setColor"); aJson.addItemToArray(logicalDevices, device); aJson.addItemToObject(root, "devicelist" logicalDevices);
Doing so results in a broken JSON tree. Any way to do this? Or does this break JSON schema?
Is possible add one or more json object in a json array?