| 190 | } |
| 191 | |
| 192 | const jsmntok_t *json_next(const jsmntok_t *tok) |
| 193 | { |
| 194 | const jsmntok_t *t; |
| 195 | size_t i; |
| 196 | |
| 197 | for (t = tok + 1, i = 0; i < tok->size; i++) |
| 198 | t = json_next(t); |
| 199 | |
| 200 | return t; |
| 201 | } |
| 202 | |
| 203 | /* We refuse JSON nested deeper than this. jsmn tokenizes iteratively, but |
| 204 | * json_next() and the validators below recurse once per nesting level, so an |
no outgoing calls
no test coverage detected