mirror of
https://github.com/bblanchon/ArduinoJson.git
synced 2025-07-29 18:27:37 +02:00
Changed the JsonParser template parameter to be the max number of tokens instead of the number of bytes
This commit is contained in:
@ -9,7 +9,7 @@ void ParseAnObject()
|
||||
{
|
||||
char* json = "{\"Name\":\"Blanchon\",\"Skills\":[\"C\",\"C++\",\"C#\"],\"Age\":32,\"Online\":true}";
|
||||
|
||||
JsonParser<256> parser;
|
||||
JsonParser<32> parser;
|
||||
|
||||
Serial.print("Parse ");
|
||||
Serial.println(json);
|
||||
@ -49,7 +49,7 @@ void ParseAnArray()
|
||||
{
|
||||
char* json = "[[1.2,3.4],[5.6,7.8]]";
|
||||
|
||||
JsonParser<256> parser;
|
||||
JsonParser<32> parser;
|
||||
|
||||
Serial.print("Parse ");
|
||||
Serial.println(json);
|
||||
|
Reference in New Issue
Block a user