@@ -10,6 +10,8 @@
// "hostname": "examples.com",
// "port": 2731
// }
+//
+// https://arduinojson.org/v6/example/config/
#include <ArduinoJson.h>
#include <SD.h>
@@ -130,4 +132,15 @@ void loop() {
// not used in this example
}
-// Visit https://arduinojson.org/v6/example/config/ for more.
+// See also
+// --------
+// https://arduinojson.org/ contains the documentation for all the functions
+// used above. It also includes an FAQ that will help you solve any
+// serialization or deserialization problem.
+// The book "Mastering ArduinoJson" contains a case study of a project that has
+// a complex configuration with nested members.
+// Contrary to this example, the project in the book uses the SPIFFS filesystem.
+// Learn more at https://arduinojson.org/book/
+// Use the coupon code TWENTY for a 20% discount ❤❤❤❤❤
@@ -3,6 +3,8 @@
// MIT License
//
// This example shows how to generate a JSON document with ArduinoJson.
+// https://arduinojson.org/v6/example/generator/
@@ -61,4 +63,15 @@ void loop() {
-// Visit https://arduinojson.org/v6/example/generator/ for more.
+// serialization problem.
+// The book "Mastering ArduinoJson" contains a tutorial on serialization.
+// It begins with a simple example, like the one above, and then adds more
+// features like serializing directly to a file or an HTTP request.
@@ -15,6 +15,8 @@
// 2.302038
// ]
+// https://arduinojson.org/v6/example/http-client/
#include <Ethernet.h>
@@ -98,4 +100,16 @@ void loop() {
-// Visit https://arduinojson.org/v6/example/http-client/ for more.
+// The book "Mastering ArduinoJson" contains a tutorial on deserialization
+// showing how to parse the response from GitHub's API. In the last chapter,
+// it shows how to parse the huge documents from OpenWeatherMap
+// and Reddit.
// This example shows how to deserialize a JSON document with ArduinoJson.
+// https://arduinojson.org/v6/example/parser/
@@ -64,4 +66,15 @@ void loop() {
-// Visit https://arduinojson.org/v6/example/parser/ for more.
+// deserialization problem.
+// The book "Mastering ArduinoJson" contains a tutorial on deserialization.
+// features like deserializing directly from a file or an HTTP request.
@@ -12,6 +12,8 @@
// "analog": [0, 76, 123, 158, 192, 205],
// "digital": [1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0, 0]
+// https://arduinojson.org/v6/example/http-server/
@@ -94,4 +96,15 @@ void loop() {
client.stop();
-// Visit https://arduinojson.org/v6/example/http-server/ for more.
+// It begins with a simple example, then adds more features like serializing
+// directly to a file or an HTTP client.
@@ -16,6 +16,8 @@
// For example, you can run netcat on your computer
// $ ncat -ulp 8888
// See https://nmap.org/ncat/
+// https://arduinojson.org/v6/example/udp-beacon/
@@ -84,4 +86,15 @@ void loop() {
delay(10000);
-// Visit https://arduinojson.org/v6/example/udp-beacon/ for more.
+// directly to a file or any stream.
@@ -4,6 +4,8 @@
// This example shows how to deserialize a MessagePack document with
// ArduinoJson.
+// https://arduinojson.org/v6/example/msgpack-parser/
@@ -71,5 +73,3 @@ void setup() {
void loop() {
-
-// Visit https://arduinojson.org/v6/example/msgpack-parser/ for more.
@@ -8,6 +8,8 @@
// Use Flash strings sparingly, because ArduinoJson duplicates them in the
// JsonDocument. Prefer plain old char*, as they are more efficient in term of
// code size, speed, and memory usage.
+// https://arduinojson.org/v6/example/progmem/
@@ -56,4 +58,15 @@ void loop() {
-// Visit https://arduinojson.org/v6/example/progmem/ for more.
+// used above. It also includes an FAQ that will help you solve any memory
+// problem.
+// The book "Mastering ArduinoJson" contains a quick C++ course that explains
+// how your microcontroller stores strings in memory. It also tells why you
+// should not abuse Flash strings with ArduinoJson.
@@ -7,6 +7,8 @@
// Use String objects sparingly, because ArduinoJson duplicates them in the
// JsonDocument. Prefer plain old char[], as they are more efficient in term of
+// https://arduinojson.org/v6/example/string/
@@ -62,4 +64,14 @@ void loop() {
-// Visit https://arduinojson.org/v6/example/string/ for more.
+// used above. It also includes an FAQ that will help you solve any problem.
+// how your microcontroller stores strings in memory. On several occasions, it
+// shows how you can avoid String in your program.