| 259 | } |
| 260 | |
| 261 | const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index) |
| 262 | { |
| 263 | const jsmntok_t *t; |
| 264 | size_t i; |
| 265 | |
| 266 | if (tok->type != JSMN_ARRAY) |
| 267 | return NULL; |
| 268 | |
| 269 | json_for_each_arr(i, t, tok) { |
| 270 | if (index == 0) |
| 271 | return t; |
| 272 | index--; |
| 273 | } |
| 274 | |
| 275 | return NULL; |
| 276 | } |
| 277 | |
| 278 | const char *json_get_id(const tal_t *ctx, |
| 279 | const char *buffer, const jsmntok_t *obj) |
no outgoing calls
no test coverage detected