Using custom JsonConverter in order to alter the serialization of the portion of an object
问题 I'm having a hard time overriding the WriteJson method of a custom JsonConverter in order to slightly alter the way serialization is performed. I need to call a REST service that accepts a certain input that has a generic portion. I can reproduce the problem I'm having with the following payload format : public sealed class JsonField { public string Key { get; set; } public object Value { get; set; } public string OtherParam { get; set; } } public sealed class JsonPayload { public string