Updated README

This commit is contained in:
Benoit Blanchon
2020-04-08 11:16:11 +02:00
parent 67e78f0751
commit 2097ffaabf

View File

@ -117,10 +117,8 @@ DynamicJsonDocument doc(1024);
doc["sensor"] = "gps"; doc["sensor"] = "gps";
doc["time"] = 1351824120; doc["time"] = 1351824120;
doc["data"][0] = 48.756080;
JsonArray data = doc.createNestedArray("data"); doc["data"][1] = 2.302038;
data.add(48.756080);
data.add(2.302038);
serializeJson(doc, Serial); serializeJson(doc, Serial);
// This prints: // This prints:
@ -134,4 +132,4 @@ See the [tutorial on arduinojson.org](https://arduinojson.org/doc/encoding/?utm_
Do you like this library? Please [star this project on GitHub](https://github.com/bblanchon/ArduinoJson/stargazers)! Do you like this library? Please [star this project on GitHub](https://github.com/bblanchon/ArduinoJson/stargazers)!
What? You don't like it but you *love* it? What? You don't like it but you *love* it?
We don't take donations anymore, but [we sell a book](https://arduinojson.org/book/?utm_source=github&utm_medium=readme), so you can help and learn at the same time?utm_source=github&utm_medium=readme! We don't take donations anymore, but [we sell a book](https://arduinojson.org/book/?utm_source=github&utm_medium=readme), so you can help and learn at the same time.