String params="";//json格式的字符串
JSONObject data = JSONObject .fromObject(params);
Set<Map.Entry<String, Object>> entries = data.entrySet();
Iterator<Map.Entry<String, Object>> it = entries.iterator(); String param="";while (it.hasNext()) { Map.Entry<String, Object> next = it.next(); String key = next.getKey(); Object value = next.getValue(); param+=key+"="+value; } System.out.println(param);