| 464 | } |
| 465 | |
| 466 | bool json_validate(const char *json) |
| 467 | { |
| 468 | const char *s = json; |
| 469 | |
| 470 | skip_space(&s); |
| 471 | if (!parse_value(&s, nullptr)) |
| 472 | return false; |
| 473 | |
| 474 | skip_space(&s); |
| 475 | if (*s != 0) |
| 476 | return false; |
| 477 | |
| 478 | return true; |
| 479 | } |
| 480 | |
| 481 | JsonNode *json_find_element(const JsonNode *array, int index) |
| 482 | { |
nothing calls this directly
no test coverage detected