How do I invoke WriteJson recursively?
I use Json.Net. When I serialize a Department2 object and WriteJson() is invoked I want it to be recursively invoked with each of the Telephone2 objects like I do in ReadJson() . How do I do that? using System; using Newtonsoft.Json; using Newtonsoft.Json.Linq; public interface ISimpleDatabag { string Databag { get; set; } } [JsonConverter(typeof(JsonDataBagCreationConverter<Department2>))] public class Department2 { public Telephone2[] Phones { get; set; } } [JsonConverter(typeof(JsonDataBagCreationConverter<Telephone2>))] public class Telephone2 { public string Name { get; set; } public