Hi all
If my C# client app need to deserialize complex JSON from Java server app, what is the best option I have?
Here are two conditions need to consider: 1) speed is the most important 2) Json format could include information about the Java data type, C# client app. need to recognize it and convert it to C# corespondent type. for exmaple,
...,"Variable1" : [ "java.math.BigDecimal", 0E-8 ],
"Variable2" : [ "com.xmlasia.x5.refdata.instrument.model.MarginGroup"],...
IMO because of point 2, the only way is to build my own deserializer, am I right?
Regard to point 1, if I use Json.net to deserialize the Json, and then convert to arraylist, with it have significant impact on the speed? Is there an other better way?
The disadvantage of the arraylist approach is that the extractJson method get really messy, and I think arraylist is slow.