Serialize an immutable collection This sample serializes an immutable collection into JSON. var l = ImmutableList.CreateRange( [ "One", "II", "3" ]); var json = JsonConvert.SerializeObject(l, Formatting.Indented); // [ // "One", // "II", // "3" // ] snippet source | anchor