mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-08-11 08:34:45 +02:00
Updated Decoding JSON (markdown)
@@ -146,6 +146,13 @@ You can also iterate through the key-value pairs of the object:
|
||||
Serial.println(it->value.asString());
|
||||
}
|
||||
|
||||
Or if you want to iterate through a nested array:
|
||||
|
||||
JsonObject& data = variables["data"];
|
||||
for (auto dataobj : data){
|
||||
Serial.println(dataobj.key);
|
||||
}
|
||||
|
||||
## Advanced Example
|
||||
|
||||
Let's take what we've learned above up a gear :)
|
||||
|
Reference in New Issue
Block a user