WCF add service reference and JSON.net package issue

Jun 19, 2014 at 10:20 PM
Edited Jun 19, 2014 at 10:21 PM
Hi All,

When adding reference to a WCF service in a web project that has the json.net package installed, the generated client proxy is using XmlSerializer instead of DataContractSerializer. If the json.net package is removed, then DataContractSerializer is used when generating the client proxy classes. How can I safely use json.net and still have the client proxy using DataContractSerializer?
This happens when the WCF service is using System.Data namespace objects like System.Data.DataTable. Any help here is appreciated.