ibeautiful
public Map jsonToObject(String jsonStr) throws Exception {JSONObject jsonObj = new JSONObject(jsonStr);Iterator<String> nameItr = jsonObj.keys();String name;Map<String, String> outMap = new HashMap<String, String>();while (nameItr.hasNext()) {name = nameItr.next();outMap.put(name, jsonObj.getString(name));}return outMap;}