servlet獲取json數(shù)據(jù) servlet返回json對象
~!List<String>;List=新建數(shù)組List<String>()JSONArray JSONArray==JSONArray.fromObject(列表)JSONObjec
~!List<String>;List=新建數(shù)組List<String>()JSONArray JSONArray==JSONArray.fromObject(列表)JSONObject.fromObject然后可以返回jsonarray或jsonobject