JSONObject转JSONArray 转为object处理
方法1
JSONObject jo = JSON.parseObject(data);
Object users = jo.get("users");
JSONArray ja = (JSONArray)users;
方法2
JSONArray recordMap = JSON.parseArray(jo.getString("users").toString());
URLDecoder.decode(URLDecoder.decode(json, "GBK"), "UTF-8");
response.setContentType("text/html;charset=utf-8");
json =new String(json.getBytes(),"UTF-8");
网友评论