上传空的数组json解析异常问题
This commit is contained in:
parent
bc8cefa482
commit
759f716eeb
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user