MCPcopy Create free account
hub / github.com/antirez/ds4 / append_json_arg_pair

Function append_json_arg_pair

ds4_server.c:2218–2223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2216 if (!json_string(p, &key)) goto bad;
2217 json_ws(p);
2218 if (**p != ':') {
2219 free(key);
2220 goto bad;
2221 }
2222 (*p)++;
2223 if (!strcmp(key, "type")) {
2224 if (!json_string_replace(p, &type)) {
2225 free(key);
2226 goto bad;

Callers 1

Calls 2

json_escapeFunction · 0.85
buf_putsFunction · 0.85

Tested by

no test coverage detected