diff --git a/README.md b/README.md index d4fb404..6f6fb47 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ All job is done by `jsmn_parser` object. You can initialize a new parser using: // js - pointer to JSON string // tokens - an array of tokens available // 10 - number of tokens available - jsmn_parse(&parser, js, tokens, 10); + jsmn_parse(&parser, js, strlen(js), tokens, 10); This will create a parser, and then it tries to parse up to 10 JSON tokens from the `js` string.