22 JSON Object
33
44 This sketch demonstrates how to use various features
5- of the Official Arduino JSON library, in particular for JSON objects.
5+ of the Official Arduino_JSON library, in particular for JSON objects.
66
77 This example code is in the public domain.
88*/
@@ -29,7 +29,7 @@ void demoParse() {
2929
3030 JSONVar myObject = JSON.parse (input);
3131
32- // JSON.typeof(jsonVar) can be used to get the type of the var
32+ // JSON.typeof(jsonVar) can be used to get the type of the variable
3333 if (JSON.typeof (myObject) == " undefined" ) {
3434 Serial.println (" Parsing input failed!" );
3535 return ;
@@ -63,7 +63,7 @@ void demoParse() {
6363 Serial.println ((const char *) myObject[" foo" ]);
6464 }
6565
66- // JSON vars can be printed using print or println
66+ // JSONVars can be printed using print or println
6767 Serial.print (" myObject = " );
6868 Serial.println (myObject);
6969
@@ -83,7 +83,7 @@ void demoCreation() {
8383 Serial.print (" myObject.keys() = " );
8484 Serial.println (myObject.keys ());
8585
86- // JSON.stringify(myVar) can be used to convert the json var to a String
86+ // JSON.stringify(myVar) can be used to convert the JSONVar to a String
8787 String jsonString = JSON.stringify (myObject);
8888
8989 Serial.print (" JSON.stringify(myObject) = " );
0 commit comments