MCPcopy Create free account
hub / github.com/HumbleNet/HumbleNet / process_object

Function process_object

3rdparty/json-parser/examples/test_json.c:58–70  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56static void process_value(json_value* value, int depth);
57
58static void process_object(json_value* value, int depth)
59{
60 int length, x;
61 if (value == NULL) {
62 return;
63 }
64 length = value->u.object.length;
65 for (x = 0; x < length; x++) {
66 print_depth_shift(depth);
67 printf("object[%d].name = %s\n", x, value->u.object.values[x].name);
68 process_value(value->u.object.values[x].value, depth+1);
69 }
70}
71
72static void process_array(json_value* value, int depth)
73{

Callers 1

process_valueFunction · 0.85

Calls 2

print_depth_shiftFunction · 0.85
process_valueFunction · 0.85

Tested by

no test coverage detected