diff --git a/tiny-json.h b/tiny-json.h index 78e4e19..365ce7a 100644 --- a/tiny-json.h +++ b/tiny-json.h @@ -43,7 +43,10 @@ typedef struct json_s { char const* name; union { char const* value; - struct json_s* child; + struct { + struct json_s* child; + struct json_s* last_child; + }; } u; jsonType_t type; } json_t;