json.array!(@items) do |item| json.extract! item, :id, :name, :description json.url item_url(item, format: :json) end