+ 7
XML and JSON
After recently learning the 2 languages, it seems that they are very similar in their purposes and there is little to no difference between them. What I am wondering is the benefits of using one over the other and what some uses for them would be that the other may not be able to accomplish as well. Thanks in advance!
2 Answers
+ 3
I'd say it depends on the support for them in the languages you are using to parse them and types of calls you are trying to make. In my opinion, JSON is more straight forward and less prone to misinterpretation, but XML is more powerful in it's descriptive abilities due to having attributes. Personally, I would stick to JSON when I could, but I deal with a lot of SOAP services that require XML. After importing a WSDL you generally don't even have to care what the format is though since you just work with the objects.
0
Pls how do I convert html file to iOS Application. Thanks