mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-18 13:02:25 +02:00
JsonParseExample: use a const char*
instead of a char[]
This commit is contained in:
@ -18,7 +18,7 @@ void setup() {
|
|||||||
JsonDocument doc;
|
JsonDocument doc;
|
||||||
|
|
||||||
// JSON input string.
|
// JSON input string.
|
||||||
char json[] =
|
const char* json =
|
||||||
"{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}";
|
"{\"sensor\":\"gps\",\"time\":1351824120,\"data\":[48.756080,2.302038]}";
|
||||||
|
|
||||||
// Deserialize the JSON document
|
// Deserialize the JSON document
|
||||||
|
Reference in New Issue
Block a user