Nested Array Can Not Contain Other Arrays? · Issue #51 - GitHub
Maybe your like
-
Uh oh!
There was an error while loading. Please reload this page.
- Notifications You must be signed in to change notification settings
- Fork 1.2k
- Star 7.1k
- Code
- Issues 17
- Pull requests 0
- Actions
- Security
Uh oh!
There was an error while loading. Please reload this page.
- Insights
Description
Hi,
I like to do something like
JsonArray& data = root.createNestedArray("data");
JsonArray& data1 = data.createNestedArray("data1"); data1.add(48.756080, 6); data1.add(2.302038, 6); JsonArray& data2 = data.createNestedArray("data2"); data2.add(48.756080, 6); data2.add(2.302038, 6);
data.add(data1); data.add(data2);
But get this compilation error JsonGeneratorExample.ino:19:52: error: no matching function for call to 'ArduinoJson::JsonArray::createNestedArray(const char [6])' JsonGeneratorExample.ino:19:52: note: candidate is: In file included from /home/cccc/Arduino_sketchbook/libraries/ArduinoJson/include/ArduinoJson.h:8:0, from /home/cccc/Arduino_sketchbook/libraries/ArduinoJson/ArduinoJson.h:11, from JsonGeneratorExample.ino:7: /home/cccc/Arduino_sketchbook/libraries/ArduinoJson/include/../include/ArduinoJson/JsonArray.hpp:68:14: note: ArduinoJson::JsonArray& ArduinoJson::JsonArray::createNestedArray() JsonArray &createNestedArray();
My JSON string should look like this {"sensor":"gps","time":1351824120,"data":[[48.756080,2.302038],[48.756080,2.302038]]}
Isn't this possible or where is my error?
Best Christian
Metadata
Metadata
Assignees
No one assignedLabels
ArduinoJson 5Projects
No projectsMilestone
No milestoneRelationships
None yetDevelopment
No branches or pull requestsIssue actions
You can’t perform that action at this time.Tag » Arduino Json 6 Nested Array
-
JsonDocument::createNestedArray() | ArduinoJson 6
-
JsonArray | ArduinoJson 6
-
ArduinoJson Nested Array - Programming Questions - Arduino Forum
-
How To Create Nested Json Using ArduinoJson On ESP8266
-
How To Create Nested Object In Nested Array? · Issue #380 - GitHub
-
ESP8266: Parsing JSON Arrays - Techtutorialsx
-
C++ ArduinoJson::JsonArray::createNestedObject() - CPPSECRETS
-
[தமிழ்] Create JSON String With Nested JSON & JSON Array
-
Mastering ArduinoJson 6 - PDFCOFFEE.COM
-
Arduino -Sending And Receiving JSON Data Over MQTT
-
Fun With ESP32 + Arduino (15) ArduinoJSON Library (V6 Version)
-
Decoding And Encoding JSON Arduino | Random Nerd Tutorials
-
ArduinoJSON: Serialize And Deserialize - Tutorialspoint
-
How To Use A Multidimensional Json Array In Android Studio ...