177178179180181182183184185186187
List<Device> deviceList = new LinkedList<Device>(); for (int i=0; i< array.size(); i++) { if (array.get(i) instanceof org.json.simple.JSONObject) { deviceList.add(new JSONDeviceImpl((JSONObject)array.get(i))); } } return deviceList; }