| 188 | } |
| 189 | |
| 190 | const char *json_get_id(const tal_t *ctx, |
| 191 | const char *buffer, const jsmntok_t *obj) |
| 192 | { |
| 193 | const jsmntok_t *idtok = json_get_member(buffer, obj, "id"); |
| 194 | if (!idtok) |
| 195 | return NULL; |
| 196 | return json_strdup(ctx, buffer, idtok); |
| 197 | } |
| 198 | |
| 199 | /*----------------------------------------------------------------------------- |
| 200 | JSMN Result Validation Starts |
nothing calls this directly
no test coverage detected