json/parser: can parse multiple objects
This commit is contained in:
parent
340f0af3c0
commit
7ccda83497
@ -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
|
// Check for a followup comma. If it isn't a comma, then we're done
|
||||||
if tok := p.scan(); tok.Type != token.COMMA {
|
if tok := p.scan(); tok.Type != token.COMMA {
|
||||||
p.unscan()
|
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user