| 171 | } |
| 172 | |
| 173 | const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index) |
| 174 | { |
| 175 | const jsmntok_t *t; |
| 176 | size_t i; |
| 177 | |
| 178 | if (tok->type != JSMN_ARRAY) |
| 179 | return NULL; |
| 180 | |
| 181 | json_for_each_arr(i, t, tok) { |
| 182 | if (index == 0) |
| 183 | return t; |
| 184 | index--; |
| 185 | } |
| 186 | |
| 187 | return NULL; |
| 188 | } |
| 189 | |
| 190 | const char *json_get_id(const tal_t *ctx, |
| 191 | const char *buffer, const jsmntok_t *obj) |
no outgoing calls
no test coverage detected