You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fastjson2 2.0.50
class com.alibaba.fastjson2.JSONArray
class java.util.ArrayList
class java.util.ArrayList class jdk.proxy2.$Proxy8
[1]
[1]
[1] {}
org.opentest4j.AssertionFailedError:
Expected :[1]
Actual :{}
fastjson 2.0.50
class com.alibaba.fastjson.JSONArray
class java.util.ArrayList
class java.util.ArrayList class java.util.Collections$EmptyList
[1]
[1]
[1] []
org.opentest4j.AssertionFailedError:
Expected :[1]
Actual :[]
fastjson 1.2.83
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
[1]
[1]
[1]
[1]
The text was updated successfully, but these errors were encountered:
问题描述
和 #2564 相似,jsonArray.to(JSON.class),代码在1.2.83中正常,在fastjson2中使用jsonObject.to(JSON.class)与fastjson有出入,JSON.toJSONString也无法按预期序列化
环境信息
重现步骤
相关日志输出
fastjson2 2.0.50
class com.alibaba.fastjson2.JSONArray
class java.util.ArrayList
class java.util.ArrayList
class jdk.proxy2.$Proxy8
[1]
[1]
[1]
{}
org.opentest4j.AssertionFailedError:
Expected :[1]
Actual :{}
fastjson 2.0.50
class com.alibaba.fastjson.JSONArray
class java.util.ArrayList
class java.util.ArrayList
class java.util.Collections$EmptyList
[1]
[1]
[1]
[]
org.opentest4j.AssertionFailedError:
Expected :[1]
Actual :[]
fastjson 1.2.83
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
class com.alibaba.fastjson.JSONArray
[1]
[1]
[1]
[1]
The text was updated successfully, but these errors were encountered: