| 56 | static void process_value(json_value* value, int depth); |
| 57 | |
| 58 | static 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 | |
| 72 | static void process_array(json_value* value, int depth) |
| 73 | { |
no test coverage detected