Parse an empty object correctly
This commit is contained in:
parent
9ea51b2855
commit
514bbeaf7f
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user