json.array!(@cities) do |city| json.extract! city, :name, :majname, :postalcode, :inseecode, :regioncode, :latitude, :longitude json.url city_url(city, format: :json) end