diff --git a/json/parser/parser.go b/json/parser/parser.go index 6f46085..125a5f0 100644 --- a/json/parser/parser.go +++ b/json/parser/parser.go @@ -147,7 +147,7 @@ func (p *Parser) objectKey() ([]*ast.ObjectKey, error) { // Done return keys, nil case token.ILLEGAL: - fmt.Println("illegal") + return nil, errors.New("illegal") default: return nil, fmt.Errorf("expected: STRING got: %s", p.tok.Type) }