+ 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.

11th May 2018, 6:11 AM
Akib - avatar
3 Answers
+ 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
11th May 2018, 6:20 AM
Abdur-Rahmaan Janhangeer
Abdur-Rahmaan Janhangeer - avatar
+ 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.
11th May 2018, 6:26 AM
Mickel - avatar
+ 1
OK, thank you guys for clearing this up for me. Have a good one.
11th May 2018, 12:36 PM
Akib - avatar