diff --git a/examples/JsonGeneratorExample/JsonGeneratorExample.ino b/examples/JsonGeneratorExample/JsonGeneratorExample.ino index b74e2c0d..d5f0cc70 100644 --- a/examples/JsonGeneratorExample/JsonGeneratorExample.ino +++ b/examples/JsonGeneratorExample/JsonGeneratorExample.ino @@ -11,7 +11,7 @@ void setup() { Serial.begin(9600); while (!Serial) continue; - // The JSON document + // Allocate the JSON document // // Inside the brackets, 200 is the RAM allocated to this document. // Don't forget to change this value to match your requirement. diff --git a/examples/JsonParserExample/JsonParserExample.ino b/examples/JsonParserExample/JsonParserExample.ino index 1001350c..d2226be6 100644 --- a/examples/JsonParserExample/JsonParserExample.ino +++ b/examples/JsonParserExample/JsonParserExample.ino @@ -11,7 +11,7 @@ void setup() { Serial.begin(9600); while (!Serial) continue; - // Root JSON object + // Allocate the JSON document // // Inside the brackets, 200 is the size of the memory pool in bytes. // Don't forget to change this value to match your JSON document. @@ -47,7 +47,7 @@ void setup() { // Fetch values. // // Most of the time, you can rely on the implicit casts. - // In other case, you can do doc["time"].as(); + // In other case, you can do root["time"].as(); const char* sensor = root["sensor"]; long time = root["time"]; double latitude = root["data"][0]; diff --git a/examples/MsgPackParser/MsgPackParser.ino b/examples/MsgPackParser/MsgPackParser.ino index 5798aff4..0ee420aa 100644 --- a/examples/MsgPackParser/MsgPackParser.ino +++ b/examples/MsgPackParser/MsgPackParser.ino @@ -60,7 +60,7 @@ void setup() { // Fetch values. // // Most of the time, you can rely on the implicit casts. - // In other case, you can do doc["time"].as(); + // In other case, you can do root["time"].as(); const char* sensor = root["sensor"]; long time = root["time"]; double latitude = root["data"][0];