我正在使用ajax将一个json对象从javascript传递给一个java servlet。在我的Java中,我从请求中获取json字符串,然后创建一个jsonarray,然后循环遍历该数组,但在尝试从数组中提取一个json对象时遇到错误。net.sf.json.JSONException: JSONArray[0] is not a JSONObject.
下
所以,这就是JSON代码。我正在尝试获取"abridged_cast“。但这很复杂。= null) { // convert the String response to a JSON object,// because JSON is the response format Rotten Tomatoes uses
JSONObject jsonResponse =&quo