Here's the scoop.
I'm developing a web site for a client that uses CRM 2011 (on premises) as a data source. I'm using late binding.
Since I cannot have live connection during my testing (I can only access CRM via RDP) I came with an idea of mocking CRM data during development stage by exporting the relevant entities into files and then use said files locally.
Exporting data and serializing them into JSON via JavaScriptSerializer was a piece of cake.
However, for the life of my I cannot figure out how to deserialize them back. The singular properties (LoficalName, Id, etc) work just fine, but the AttributeCollection and FormattedValues serialize as arrays of objects and cannot be brought back as collections. I'm not even talking about the fact that attributes can have different structure depending on type.
So, in short, my question is: how would you serialize a late bound entity so it's deserializeable back? JSON is preferable, but if XML is the only way, I'd take that , too...
TIA!
Nikolai