报错:net.sf.json.JSONException

显示报错:
图片说明

源代码:
<%
/*获取所有业务
*/
String url="#url";
String param="#URL"; //地区编号
String html="";
//String temp="";
try{
String result=sendGet(url,param);
result=URLDecoder.decode(result);

    //解析json数据
    JSONObject jsonObject=JSONObject.fromObject(result);
    String info=jsonObject.getString("info");
    JSONArray infoArray=JSONArray.fromObject(info);
    //拼接下面html数据
    for(int i=0;i<infoArray.size();i++){
        JSONObject oneObject=infoArray.getJSONObject(i);
        //temp=oneObject.getString("ACCEPT_USER_NAME");

        //没有完成的业务就没有完成时间,需要先判断,否则报错:
        String finish_time="";
        if(oneObject.containsKey("FINISH_TIME")){
            finish_time="<script type='text/javascript'>showTime('"+oneObject.getString("FINISH_TIME")+"');</script>";
        }else{
            finish_time="处理中";
        }

        String time_limit="";
        if(oneObject.containsKey("TIME_LIMIT")){
            time_limit="<script type='text/javascript'>showTime('"+oneObject.getString("TIME_LIMIT")+"');</script>";
        }else{
            time_limit="-";
        }

        html+="<li><span class='span1'>"+oneObject.getString("RECEIVE_NUMBER")+"</span><span class='span2'><a title='"+oneObject.getString("APPLY_SUBJECT")+"'>"+oneObject.getString("APPLY_SUBJECT")+"</a></span><span class='span4'><a title='"+oneObject.getString("ORG_NAME")+"'>"+oneObject.getString("ORG_NAME")+"</a></span><span class='span4'>"+time_limit+"</span><span class='span4'>"+finish_time+"</span><span class='span3 yellow'>"+oneObject.getString("CURRENT_NODE_NAME")+"</span></li>";
    }

    //out.print(html);
}catch(Exception e){    
    out.print(e.toString());
}

%>

麻烦高手看看是啥情况!

2个回答

http://www.bejson.com/ 把你解析的json扔进去看看 格式哪里错了

是json字符串格式错了

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问