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
class com.alibaba.fastjson2.JSONObject
class com.alibaba.fastjson2.JSONObject
class jdk.proxy2.$Proxy8
{"key":"value"}
{"key":"value"}
{}
org.opentest4j.AssertionFailedError: expected: com.alibaba.fastjson2.JSONObject@1de5f259<{"key":"value"}> but was: jdk.proxy2.$Proxy8@729d991e<{"key":"value"}>
Expected :{"key":"value"}
Actual :{"key":"value"}
// in fastjson
class com.alibaba.fastjson.JSONObject
class com.alibaba.fastjson.JSONObject
class com.alibaba.fastjson.JSONObject
{"key":"value"}
{"key":"value"}
{"key":"value"}
The text was updated successfully, but these errors were encountered:
问题描述
代码在fastjson兼容包和1.2.83均正常,在fastjson2中使用jsonObject.to(JSON.class)与fastjson不一致,JSON.toJSONString也无法按预期序列化
环境信息
重现步骤
相关日志输出
class com.alibaba.fastjson2.JSONObject
class com.alibaba.fastjson2.JSONObject
class jdk.proxy2.$Proxy8
{"key":"value"}
{"key":"value"}
{}
org.opentest4j.AssertionFailedError: expected: com.alibaba.fastjson2.JSONObject@1de5f259<{"key":"value"}> but was: jdk.proxy2.$Proxy8@729d991e<{"key":"value"}>
Expected :{"key":"value"}
Actual :{"key":"value"}
// in fastjson
class com.alibaba.fastjson.JSONObject
class com.alibaba.fastjson.JSONObject
class com.alibaba.fastjson.JSONObject
{"key":"value"}
{"key":"value"}
{"key":"value"}
The text was updated successfully, but these errors were encountered: