--读取json json-lib-2.2.3
{"COUNT":"888","NAME":"JTS"}
JSONObject jsonObject = JSONObject.fromObject(m.getValue());
String name = jsonObject.getString("COUNT");
System.out.println(name);
--生成json
JSONObject jsonObject = new JSONObject();
jsonObject.put("COUNT", "888");
jsonObject.put("NAME", "JTS");
String strJson = jsonObject.toString();
结果:{"COUNT":"888","NAME":"JTS"}