I use Newtonsoft.Json. I need to serialize object, this object can hold other objects or array of objects that should also be converted with my custom JsonConverter. In method WriteJson I call
var jo = JObject.FromObject(value)
And then modify JSON how I need. But then converter is not applied to child objects so they are left unmodified. If I pass current converter to this function then it gets stuck in an infinite loop. Is there a way to apply current converter to all child properties without knowing object structure?