json.array!(@product_wastes) do |product_waste| json.extract! product_waste, :id json.url product_waste_url(product_waste, format: :json) end