XML or Json? | SoloLearn: Learn to code for FREE!

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

5/11/2018 6:11:51 AM

Akib

7 Answers

New Answer

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

0

So learning one of them is enough?