using System.Collections;
using System.Collections.Generic;
using System.Diagnostics;
using System.ComponentModel;
using Newtonsoft.Json.Linq;
using Newtonsoft.Json.Converters;
using Newtonsoft.Json.Serialization;
public ICollection collection { get; set; }
public static void Main()
Console.WriteLine("Json.NET version: " + typeof(JsonSerializer).Assembly.FullName);
var list = new ArrayList();
list.Add(new Dictionary<string, string> { { "a", "b" } });
var obj = new RootObject { collection = list };
var json = JsonConvert.SerializeObject(obj, Formatting.Indented);