|
|
@ -135,7 +135,7 @@ All job is done by `jsmn_parser` object. You can initialize a new parser using:
|
|
|
|
// js - pointer to JSON string
|
|
|
|
// js - pointer to JSON string
|
|
|
|
// tokens - an array of tokens available
|
|
|
|
// tokens - an array of tokens available
|
|
|
|
// 10 - number 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
|
|
|
|
This will create a parser, and then it tries to parse up to 10 JSON tokens from
|
|
|
|
the `js` string.
|
|
|
|
the `js` string.
|
|
|
|