MCPcopy Create free account
hub / github.com/ading2210/linuxpdf / json_parse_value

Function json_parse_value

tinyemu/json.c:440–452  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

438}
439
440JSONValue json_parse_value(const char *p)
441{
442 JSONValue val;
443 val = json_parse_value2(&p);
444 if (json_is_error(val))
445 return val;
446 skip_spaces(&p);
447 if (*p != '\0') {
448 json_free(val);
449 return json_error_new("unexpected characters at the end");
450 }
451 return val;
452}
453
454JSONValue json_parse_value_len(const char *p, int len)
455{

Callers 1

json_parse_value_lenFunction · 0.85

Calls 5

json_parse_value2Function · 0.85
json_is_errorFunction · 0.85
skip_spacesFunction · 0.85
json_freeFunction · 0.85
json_error_newFunction · 0.85

Tested by

no test coverage detected