| 19351 | } |
| 19352 | |
| 19353 | static bool is_valid_json_response(const char *json) { |
| 19354 | if (!json) { |
| 19355 | return false; |
| 19356 | } |
| 19357 | yyjson_doc *doc = yyjson_read(json, strlen(json), 0); |
| 19358 | if (!doc) { |
| 19359 | return false; |
| 19360 | } |
| 19361 | yyjson_doc_free(doc); |
| 19362 | return true; |
| 19363 | } |
| 19364 | |
| 19365 | static bool snippet_source_has_replacement(const char *json) { |
| 19366 | yyjson_doc *doc = yyjson_read(json, strlen(json), 0); |