在这样的json:{success:true,root:[{"fillDate":null,"fwpId":0,"informant":"看看","productName":"解决","projectName":"","rsId":0,"stageName":"","telephone":"","tpId":0,"weekSummary":"看","weeklyTimeRange":"看看","wsId":17}]}
字符串里面的每一个字段加入weeklySummary这个对象例如weeklySummary.filldate
有没有哪位大神可以帮小弟一下
字符串里面的每一个字段加入weeklySummary这个对象例如weeklySummary.filldate
有没有哪位大神可以帮小弟一下
JSONObject jsonObject = JSONObject.fromObject(ws);
System.out.println("jsonObject:"+jsonObject);
HttpServletResponse response = ServletActionContext.getResponse();
String json = "{success:true,root:["+jsonObject.toString()+"]}";
System.out.println("json:"+json); response.getWriter().print(json);
这是我的后台代码
//在这里就可以使用:weeklySummary.里面的字段啊。
}