Click here to Skip to main content
15,906,625 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
When i use WCF DataConstractSerializer ,the json string is durty , with some
__Type
string,

how can i serialize a object without that string?
Posted

1 solution

Your question is somewhat cryptic, but from experience with WCF I think you use System.Runtime.Serialization. Try change it to System.Xml.Serialization. The runtime version will add extra information for internal use but is horrible to read. Hopefully this will help.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900