0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
We can't talk about JSON without mentioning XML. XML
, or "Extensible Markup Language" is a text-based format for representing structured information, like JSON - but different (and a bit more verbose).
XML is a markup language like HTML, but it's more generalized in that it does not use predefined tags. Just like how in a JSON object keys can be called anything, XML tags can also have any name.
XML representing a movie:
<root>
<id>1</id>
<genre>Action</genre>
<title>Iron Man</title>
<director>Jon Favreau</director>
</root>
The same data in JSON:
{
"id": "1",
"genre": "Action",
"title": "Iron Man",
"director": "Jon Favreau"
}
XML is ____
verbose than JSON.