mirror of
https://github.com/eledio-devices/thirdparty-ArduinoJson.git
synced 2025-11-01 00:38:27 +01:00
Example: change the type of the json string from char* to char[] because it cause issue in memory protected environments.
This commit is contained in:
@@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
void ParseAnObject()
|
void ParseAnObject()
|
||||||
{
|
{
|
||||||
char* json = "{\"Name\":\"Blanchon\",\"Skills\":[\"C\",\"C++\",\"C#\"],\"Age\":32,\"Online\":true}";
|
char[] json = "{\"Name\":\"Blanchon\",\"Skills\":[\"C\",\"C++\",\"C#\"],\"Age\":32,\"Online\":true}";
|
||||||
|
|
||||||
JsonParser<32> parser;
|
JsonParser<32> parser;
|
||||||
|
|
||||||
@@ -47,7 +47,7 @@ void ParseAnObject()
|
|||||||
|
|
||||||
void ParseAnArray()
|
void ParseAnArray()
|
||||||
{
|
{
|
||||||
char* json = "[[1.2,3.4],[5.6,7.8]]";
|
char[] json = "[[1.2,3.4],[5.6,7.8]]";
|
||||||
|
|
||||||
JsonParser<32> parser;
|
JsonParser<32> parser;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user