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