遍历HashMap并放入jsonObject:
Iterator it = mp.entrySet().iterator();while (it.hasNext()) { Map.Entry pairs = (Map.Entry)it.next(); jsonObject.put(pairs.getKey(), pairs.getValue() );}
遍历HashMap并放入jsonObject:
Iterator it = mp.entrySet().iterator();while (it.hasNext()) { Map.Entry pairs = (Map.Entry)it.next(); jsonObject.put(pairs.getKey(), pairs.getValue() );}