From c59ddd8a9da467186fa86dfed4345095a343892c Mon Sep 17 00:00:00 2001 From: Benoit Blanchon Date: Wed, 15 Oct 2014 16:31:20 +0200 Subject: [PATCH] Fixed number of tokens (issue #29) --- JsonParser/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/JsonParser/README.md b/JsonParser/README.md index 0b652800..e44731f4 100644 --- a/JsonParser/README.md +++ b/JsonParser/README.md @@ -66,7 +66,7 @@ To extract data from the JSON string, you need to create a `JsonParser`, and spe > #### How to choose the number of tokens ? > A token is an element of the JSON object: either a key, a value, an object or an array. -> As an example the `char json[]` on the top of this page contains 12 tokens (don't forget to count 1 for the whole object and 1 more for the array itself). +> As an example the `char json[]` on the top of this page contains 9 tokens (don't forget to count 1 for the whole object and 1 more for the array itself). > The more tokens you allocate, the more complex the JSON can be, but also the more memory is occupied. > Each token takes 8 bytes, so `sizeof(JsonParser<32>)` is 256 bytes which is quite big in an Arduino with only 2KB of RAM.