0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 2
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
XML and JSON both accomplish similar tasks, so which should you use?
XML used to be used for the same things that today JSON is primarily used for. Configuration files, HTTP bodies, and other data-transfer can work with either JSON or XML. Personally, I believe that if JSON works, you should favor it over XML. JSON is:
There are cases where XML might still be better, or maybe even necessary, but that tends to be the exception rather than the rule.
Which should you prefer to use?