JSON and object inheritance
问题 We are trying to move from SOAP to REST and we stumbled across this issue Here party can be of type Individual or Organization. Sample XMLs <customer> <details> <party xsi:type="Individual"> <externalID>ABC123</externalID> <firstname>John</firstname> <lastname>Smith</lastname> </party> </details> </customer> <customer> <details> <party xsi:type="Organization"> <externalID>APPLE</externalID> <organizationName>Apple Inc</organizationName> <listingName>APPLE</listingName> </party> </details> <