json.extract! entry, :id, :meal_type, :calories, :proteins, :carbohydrates, :fats, :created_at, :updated_at json.url entry_url(entry, format: :json)