| 616 | } |
| 617 | |
| 618 | jsmntok_t *json_tok_copy(const tal_t *ctx, const jsmntok_t *tok) |
| 619 | { |
| 620 | return tal_dup_arr(ctx, jsmntok_t, tok, json_next(tok) - tok, 0); |
| 621 | } |
| 622 | |
| 623 | void json_tok_remove(jsmntok_t **tokens, |
| 624 | jsmntok_t *obj_or_array, const jsmntok_t *tok, size_t num) |