JsonParseExample: use a const char* instead of a char[]

This commit is contained in:
Benoit Blanchon
2023-07-20 14:47:51 +02:00
parent b69a952e69
commit bd2d232b40

View File

@ -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