Compare commits
1 Commits
52a3af664f
...
master
Author | SHA1 | Date | |
---|---|---|---|
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;
|
||||||
|
Reference in New Issue
Block a user