Newtonsoft.Json Polymorphic Serialization Fix with XmlElement
Summary Problem: When serializing XSD‑generated classes with Newtonsoft.Json, a polymorphic property (object Item) is always emitted with the property name Item. In the original XML the element name changes dynamically (e.g., TransmitRequest, ReportRequest) based on the concrete type indicated by XmlElementAttribute. The goal is to make JSON output use the attribute‑defined name that matches the runtime … Read more