@Override public void fromJSON(JSONObject jsonObject) throws JSONException { if (!jsonObject.getString(GEOJSON_TYPE).equals(GEOJSON_TYPE_Feature)) throw new JSONException("not valid geojson feature"); JSONObject oJSONGeom = jsonObject.getJSONObject(GEOJSON_GEOMETRY); mGeometry = GeoGeometry.fromJson(oJSONGeom); JSONObject jsonAttributes = jsonObject.getJSONObject(GEOJSON_PROPERTIES); Iterator<String> iter = jsonAttributes.keys(); while (iter.hasNext()) { String key = iter.next(); Object value = jsonAttributes.get(key); mFieldData.add(value); } }