(De)Serializing type with interface-based polymorphic properties into/from JSON
First of all, I apologize for the length of below code; it's about as minimal as I could get it. I'm trying to (de)serialize a dozen or so messages that are defined in a 3rd party library; I cannot modify…