json.array!(@recipes) do |recipe| json.extract! recipe, :id, :name, :duration, :ingredients, :process, :picture_url, :original_url json.url recipe_url(recipe, format: :json) end