I've studied and tested the example at
and it works perfectly well.
I've written a TOpportunity class following the above article, in order to parse JSON responses from REST API - herebelow the details of the service I'm using:
https://developer.capsulecrm.com/v2/operations/Opportunity#showOpportunity
The problem I'm facing is that the JSON received is "pure" and has no $type information inside.
If I try using TTMSFNCPersistence.LoadSettingsFromStream I get a ' "$type" property not found in Object descriptor ' error.
If I use the object class helper in WEBLib.TMSFNCTypes I can Create an empty well-formed-with-$type class instance... that stays empty when I'm assigning JSON coming from the REST service above ==> so no reading/parsing is done.
Any suggestion? Thanks in advance!