fastjson syntax error, expect {, actual true, pos 0

最近开发遇到com.alibaba.fastjson.JSONException: syntax error, expect {, actual true, pos 0, fastjson-version 1.2.73,看错误很容易发现是json转换对象时,其中有字段应该为对象或者List集合,实际上为true,查找值为true的字段,然后找出对象中List 或者对象与之对应的修改即可

posted @ 2020-10-17 10:39  学无终  阅读(1486)  评论(0编辑  收藏  举报