servlet获取json数据 servlet返回json对象
~!List<String>;List=新建数组List<String>()JSONArray JSONArray==JSONArray.fromObject(列表)JSONObjec
~!List<String>;List=新建数组List<String>()JSONArray JSONArray==JSONArray.fromObject(列表)JSONObject.fromObject然后可以返回jsonarray或jsonobject