-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
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
Nested arrays and structures #1723
Comments
So I have added my own counter but isn't there a way to get the index of the current item?
|
Hi @simonemarin, No, there is no way to get the index from the nested object. Did you solve your original problem? Best regards, |
I am still failing ad adding the values from json to the structure:
I get :
So something is wrong in the way I set the data. |
yay |
Hi @simonemarin, From your last message, I understand that your problem is fixed, so I'm going to close this issue. For simple configurations files, you can look at the JsonConfigFile.ino example. @simonemarin, thank you very much for purchasing my book; your support is greatly appreciated. Best regards, |
Describe the issue
I am trying to parse an array inside the json object and setting the data in 2 structures.
JSON model:
Troubleshooter report
Here is the report generated by the ArduinoJson Troubleshooter:
ArduinoJson Troubleshooter's report
Environment
Here is the environment that I'm using':
Reproduction
Here is a small snippet that demonstrate the problem.
Program output
Expected output:
(apparently I get the data right but I cannot set the structure correctly
Actual output:
The text was updated successfully, but these errors were encountered: