com.alibaba.fastjson.JSONObject cannot be cast to java.lang.Stringcom.alibaba.fastjson.JSONObject cannot be cast to java.lang.String

报错 使用了String强转

String resultResponse = (String) jsonObject.get("Response");

解决办法

String resultResponse=String.valueOf(jsonObject.get("Response"));
原文地址:https://www.cnblogs.com/rzkwz/p/15622499.html