MCPcopy Create free account
hub / github.com/ElementsProject/lightning / json_next

Function json_next

common/json_parse_simple.c:192–201  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

190}
191
192const 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

Callers 2

json_tok_copyFunction · 0.70
json_tok_removeFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected