Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
which serialization is faster and better and whether we have to send data from wcf to windows phone only through serialization ?
1.xml
2.json
which is better ?
Posted
Updated 2-Jun-14 19:33pm
v2

json is lightweight compared to xml, so it is more faster than XML

Is JSON better than XML?[^]

JSON or XML: Just Decide[^]
 
Share this answer
 
v2
json is faster.

The only major difference in speed would be parsing time, and that's really dependent on which library and infrastructure you use. My gut feeling is that JSON will be faster to parse, but there are probably more mature XML parsers out there, so it's likely a toss up. If it really matters that much, I'd suggest writing a few performance tests to determine which works faster in your environment.
Some XML formatted responses in favor of JSON are removed. If you plan on using the Streaming API at any point, I'd suggest making the switch to JSON, since XML is not supported there.

For further reference read..
https://www.udemy.com/blog/json-vs-xml/[^]
 
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