struct json_value { enum json_type type; union { bool boolean; char *string; double number; struct { char **keys; struct json_value *values; size_t length; } object; } value; };
json->value.object.length
json->length