Skip to content

Commit 9796aa5

Browse files
committed
Fixed a few mistakes.
1 parent 00cf097 commit 9796aa5

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

README.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,11 +50,13 @@ To extract data from the JSON string, you need to instanciate a `JsonParser`, an
5050
> #### How to choose the size ?
5151
5252
> The more bytes you give to the parser, the more complex the JSON can be, so if you have free space on your stack you should increase the size of the parser.
53-
> Sizes from 128 to 256 are usually good.
53+
> **A size from 128 to 512 bytes is usually good.**
5454
55-
> Behind the scenes, all these bytes are uses to store *jsmn* tokens.
56-
> A token is 8 bytes long, so 128 to 256, allows to parse from 16 to 32 tokens.
57-
> As an example the `char* json` on the top of this page requires 12 tokens.
55+
> Behind the scenes, all these bytes are used to store *jsmn* tokens.
56+
> A token is 8 bytes long, so 128 to 512, allows to parse from 16 to 64 tokens.
57+
> It may seem small but it's very descent for a processor with only 2KB of RAM, you won't get better results with other parsers.
58+
59+
> As an example the `char* json` on the top of this page requires 12 tokens, so 96 bytes would be enough.
5860
5961
### 4. Extract data
6062

0 commit comments

Comments
 (0)