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
Exception in thread "main" com.alibaba.fastjson.JSONException: level too large : 2048
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:1653)
at com.d.demo.java.DataSource2.main(DataSource2.java:61)
Caused by: com.alibaba.fastjson2.JSONException: level too large : 2048
The text was updated successfully, but these errors were encountered:
问题描述
序列化的对象若包含 get开头的方法并且返回对象本身 Caused by: com.alibaba.fastjson2.JSONException: level too large : 2048
环境信息
重现步骤
期待的正确结果
序列化时,过滤掉没有字段对应的 getXXX 方法,比如我对象不存在某个字段,若对象中有 getXXX 方法,转换的 JSON 串也包含 xXX 字段
相关日志输出
Exception in thread "main" com.alibaba.fastjson.JSONException: level too large : 2048
at com.alibaba.fastjson.JSON.toJSONString(JSON.java:1653)
at com.d.demo.java.DataSource2.main(DataSource2.java:61)
Caused by: com.alibaba.fastjson2.JSONException: level too large : 2048
The text was updated successfully, but these errors were encountered: