json/parser: can parse multiple objects

This commit is contained in:
Mitchell Hashimoto 2015-11-08 16:11:15 -08:00
parent 340f0af3c0
commit 7ccda83497

View File

@ -82,7 +82,6 @@ func (p *Parser) objectList() (*ast.ObjectList, error) {
// Check for a followup comma. If it isn't a comma, then we're done
if tok := p.scan(); tok.Type != token.COMMA {
p.unscan()
break
}
}