I have a ExtensionDataObject (System.Runtime.Serialization.ExtensionDataObject) field in a API response. And in this field there is customer data, not serialization tool data. Whoever designed the API didn't think much about this field, I guess.
I want to serialize the response as JSON and save it to cache (Redis). But when I serialize the response to JSON, ExtensionDataObject field disappears.
I am using
Newtonsoft.Json.JsonConvert.SerializeObject(value);
How can I serialize the data including ExtensionDataObject?