menuJsonObj.put(MENU_KEY, KeyFactory.keyToString(menu.getKey()));
JSONArray foodsJsonArr = new JSONArray();
Iterator<Food> foodIter = menu.getFoods().iterator();
while (foodIter.hasNext()) {
Food food = foodIter.next();
JSONObject foodJsonObj = new JSONObject();
foodJsonObj.put(FOOD_TITLE, food.getTitle());
foodJsonObj.put(FOOD_DESC, food.getDescription());
foodJsonObj.put(FOOD_TYPE, food.getType());
foodJsonObj.put(FOOD_EXTRA, food.getExtra());
foodJsonObj.put(FOOD_STUDENT_PRICE, food.getStudentPrice());
foodJsonObj.put(FOOD_STAFF_PRICE, food.getStaffPrice());
foodsJsonArr.put(foodJsonObj);
}
menuJsonObj.put(MENU_FOODS, foodsJsonArr);