Parse an empty object correctly

This commit is contained in:
Petri Lehtinen 2009-05-06 21:01:00 +03:00
parent 9ea51b2855
commit 514bbeaf7f

View File

@ -274,7 +274,10 @@ static json_t *json_parse_object(json_lex *lex)
return NULL;
json_lex_scan(lex);
while(1) {
if(lex->token == '}')
return object;
while(lex->token) {
char *key;
json_t *value;