+ 2
XML or Json?
I saw some API using XML and Json. Some people are using one or another and sometimes both. I'm not sure which one to learn and for what. Can somebody explain? btw I read the post on json in SL.
3 odpowiedzi
+ 3
depends like many options xml nice
<list name="todo"> ....
but json nicer to read and write and less data no <><><> and is preferred in many apis (less data - speed, bandwidth)
it depends on use
+ 2
For me the choice depends a lot on the language with which you want to make requests to the API.
There are languages that have greater support for JSON or XML, and within the ecosystem of those languages, the use of a particular option is also widely recommended (either because of its support or because it adapts to the philosophy of the language).
Personally I like to use more JSON. I consider it simpler for me.
+ 1
OK, thank you guys for clearing this up for me. Have a good one.