Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Vitaliy Filippov | fd37016cf8 |
|
@ -769,6 +769,8 @@ struct JsonParser final {
|
||||||
return fail("expected ',' in object, got " + esc(ch));
|
return fail("expected ',' in object, got " + esc(ch));
|
||||||
|
|
||||||
ch = get_next_token();
|
ch = get_next_token();
|
||||||
|
if (ch == '}')
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
}
|
}
|
||||||
|
@ -792,6 +794,8 @@ struct JsonParser final {
|
||||||
return fail("expected ',' in list, got " + esc(ch));
|
return fail("expected ',' in list, got " + esc(ch));
|
||||||
|
|
||||||
ch = get_next_token();
|
ch = get_next_token();
|
||||||
|
if (ch == ']')
|
||||||
|
break;
|
||||||
(void)ch;
|
(void)ch;
|
||||||
}
|
}
|
||||||
return data;
|
return data;
|
||||||
|
|
Loading…
Reference in New Issue