public void persistVehicleTypes() { persistIncidents(); JSONArray jsonVehicleTypes = new JSONArray(); for (VehicleType vehicleType : vehicleTypes) { jsonVehicleTypes.add(vehicleType.jsonify()); } json.put("vehicleTypes", jsonVehicleTypes); }