We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is possible add one or more json object in a json array?
The text was updated successfully, but these errors were encountered:
aJsonObject* root = aJson.createArray();
aJsonObject* day; day=aJson.createItem("Monday"); aJson.addItemToArray(root, day);
Sorry, something went wrong.
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?
No branches or pull requests
Is possible add one or more json object in a json array?
The text was updated successfully, but these errors were encountered: