fastjson2 icon indicating copy to clipboard operation
fastjson2 copied to clipboard

[FEATURE] parseArray不能忽略空的值,而是抛出异常

Open Trisitana opened this issue 2 years ago • 0 comments

com.alibaba.fastjson2.JSONException: offset 28, character ,, line 1, column 28, fastjson-version 2.0.52 [[21976997982896132,1000,0,,,0]]

对这个[[21976997982896132,1000,0,,,0]]进行parseArray的时候,在fastjson1中,是会忽略连续的几个逗号的,但是在fastjson2中,会抛出异常,实际上这几个逗号,可能是代表没有值,有没有办法回到fastjson1中的行为(忽略逗号,只匹配有值的数)

Trisitana avatar Sep 19 '24 01:09 Trisitana