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

Function json_skip_value_depth

ds4_server.c:361–374  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

359 return true;
360 }
361 for (;;) {
362 char *key = NULL;
363 if (!json_string(p, &key)) return false;
364 free(key);
365 json_ws(p);
366 if (**p != ':') return false;
367 (*p)++;
368 if (!json_skip_value_depth(p, depth + 1)) return false;
369 json_ws(p);
370 if (**p == '}') {
371 (*p)++;
372 return true;
373 }
374 if (**p != ',') return false;
375 (*p)++;
376 }
377}

Callers 3

json_skip_array_depthFunction · 0.85
json_skip_object_depthFunction · 0.85
json_skip_valueFunction · 0.85

Calls 6

json_wsFunction · 0.85
json_stringFunction · 0.85
json_skip_object_depthFunction · 0.85
json_skip_array_depthFunction · 0.85
json_litFunction · 0.85
json_numberFunction · 0.85

Tested by

no test coverage detected