遍历jsonobject
1 entrySet.iterator生成迭代器
2 从迭代器获取Map.Entry的单元对象
3 获取key和value
MapmacRssi_id = new HashMap (); Iterator it = rssi_id.entrySet().iterator(); while (it.hasNext()){ Map.Entry entry = (Map.Entry )it.next(); String key = entry.getKey(); JSONArray array = rssi_id.getJSONArray(key);