using System.Collections.Generic;
public static void Main()
const string input = "{ lotsOfNumbers: [1, 1, 1, 1, 1, 2, 3, 5, 2394, 1] }";
var deserialized = JsonConvert.DeserializeObject<MyShittyType>(input);
Console.WriteLine(deserialized.LotsOfNumbers.Count);
public class MyShittyType {
public ISet<long> LotsOfNumbers { get; set; }