上传空的数组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) {
c := this.nextToken()
this.unreadByte()
if c == ']' {
return true
}
this.unreadByte()
return
}
func (this *JsonReader) ReadArrayEnd() (ret bool) {