When I configure WCF to use jSON serialization, and include a DataTable in one of my DataContracts, it serializes the DataTable to XML before serializing the entire DataContract to jSON. I want the DataTable to be serialized as jSON, not XML.
My questions are:
- Why does it serialize the DataTable to XML first?
- How can I get it to serialize to jSON instead?