MCPcopy Create free account
hub / github.com/crawl/crawl / json_validate

Function json_validate

crawl-ref/source/json.cc:466–479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

464}
465
466bool 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
481JsonNode *json_find_element(const JsonNode *array, int index)
482{

Callers

nothing calls this directly

Calls 2

skip_spaceFunction · 0.85
parse_valueFunction · 0.85

Tested by

no test coverage detected