mirror of https://github.com/goccy/go-json.git
fix cursor issue
This commit is contained in:
parent
3eafdb6129
commit
70d6286ba8
|
@ -281,6 +281,7 @@ func (s *Stream) skipObject(depth int64) error {
|
||||||
s.cursor = cursor
|
s.cursor = cursor
|
||||||
if s.read() {
|
if s.read() {
|
||||||
_, cursor, p = s.statForRetry()
|
_, cursor, p = s.statForRetry()
|
||||||
|
cursor++
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return errors.ErrUnexpectedEndOfJSON("string of object", cursor)
|
return errors.ErrUnexpectedEndOfJSON("string of object", cursor)
|
||||||
|
|
Loading…
Reference in New Issue