上传空的数组json解析异常问题

This commit is contained in:
liwei1dao 2022-10-20 16:20:56 +08:00
parent bc8cefa482
commit 759f716eeb

View File

@ -117,10 +117,10 @@ func (this *JsonReader) ReadArrayStart() (ret bool) {
} }
func (this *JsonReader) CheckNextIsArrayEnd() (ret bool) { func (this *JsonReader) CheckNextIsArrayEnd() (ret bool) {
c := this.nextToken() c := this.nextToken()
this.unreadByte()
if c == ']' { if c == ']' {
return true return true
} }
this.unreadByte()
return return
} }
func (this *JsonReader) ReadArrayEnd() (ret bool) { func (this *JsonReader) ReadArrayEnd() (ret bool) {