| 242 | } |
| 243 | |
| 244 | const jsmntok_t *json_get_membern(const char *buffer, |
| 245 | const jsmntok_t tok[], |
| 246 | const char *label, size_t len) |
| 247 | { |
| 248 | const jsmntok_t *t; |
| 249 | size_t i; |
| 250 | |
| 251 | if (tok->type != JSMN_OBJECT) |
| 252 | return NULL; |
| 253 | |
| 254 | json_for_each_obj(i, t, tok) |
| 255 | if (json_tok_strneq(buffer, t, label, len)) |
| 256 | return t + 1; |
| 257 | |
| 258 | return NULL; |
| 259 | } |
| 260 | |
| 261 | const jsmntok_t *json_get_arr(const jsmntok_t tok[], size_t index) |
| 262 | { |
nothing calls this directly
no test coverage detected