当前位置:网站首页>Exception com alibaba. fastjson. JSONException: not match : - =

Exception com alibaba. fastjson. JSONException: not match : - =

2022-07-05 15:58:00 Ant HJK

I'm always right json The parsing is not too clear, resulting in an error , Namely obj The object was not converted to json Caused by objects

Normal resolution

 JSONObject jsonObject = JSONObject.parseObject(str);
    String versionInfoStr = jsonObject.getString("versionInfo");
    VersionInfo versionInfo = JSONObject.parseObject(versionInfoStr, VersionInfo.class);
    
 

原网站

版权声明
本文为[Ant HJK]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207051526232628.html