From 572ace5a43c43b1c6dc55f31fab03718faf2f647 Mon Sep 17 00:00:00 2001 From: Serge Zaitsev Date: Wed, 20 Jan 2016 17:28:15 +0800 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.