json.array!(@customers) do |customer| json.extract! customer, :id json.url customer_url(customer, format: :json) end