| 148 | } |
| 149 | |
| 150 | const jsmntok_t *json_get_membern(const char *buffer, |
| 151 | const jsmntok_t tok[], |
| 152 | const char *label, size_t len) |
| 153 | { |
| 154 | const jsmntok_t *t; |
| 155 | size_t i; |
| 156 | |
| 157 | if (tok->type != JSMN_OBJECT) |
| 158 | return NULL; |
| 159 | |
| 160 | json_for_each_obj(i, t, tok) |
| 161 | if (json_tok_strneq(buffer, t, label, len)) |
| 162 | return t + 1; |
| 163 | |
| 164 | return NULL; |
| 165 | } |
| 166 | |
| 167 | const jsmntok_t *json_get_member(const char *buffer, const jsmntok_t tok[], |
| 168 | const char *label) |
no test coverage detected