Search code examples
jsonodatasimple.odata

Simple.OData how to consume json?


I am currently consuming OData in a Xamarin App - and there is a significant performance issue on devices older than the iPhone 5. I believe it is because a simple request returns a significant amount of Xml - which has to be parsed by the phone. Using Json cuts the payload size to 1/10th.

(note: I am referring to the fact it will reduce the amount of work that the client library has to do, not the fact it will transfer over the network more quickly)

How can I turn on Json in Simple.OData? Xml is basically unusable on iPhone 4.

Thanks


Solution

  • JSON support has been added to Simple.OData.Client 4.0. It should work fine now.