Both JSON and XML are widely used data exchange formats.
Was wondering , are there any benefits of using JSON over XML in a Web Services , in terms of parsing , transmission over the network etcetera.
Based on internet articles it seems like JSON is leaner than XML, easier to parse. On the other hand XML schema gives the option for type validation , supports more datatypes.
How do they compare in the context of Web Services?
It seems like REST supports both formats while SOAP supports only XML . To be honest I have not heard of many web services out there using JSON format when compared to XML.
No comments:
Post a Comment