+ 1
What is the difference between XML and JASON ?
3 ответов
+ 6
XML Example:
<?xml version="1.0"encoding="UTF-8"?>
<note>
<to>Omer</to>
<from>Anis</from>
<heading> XML stands for eXtensible Markup Language. It was designed so it's easy for both machines and humans to read. And its purpose is to store and transport data. </heading>
<body>
Learn more here: https://www.w3schools.com/xml/
</body>
</note>
JSON Example:
{ "name":"Jane", "age":1000, "car":null, "eyes":"blue", "X-Men":"Mystique"}
JSON stands for JavaScript Object Notation.
JSON is a "key:value pair" syntax and it's for storing and exchanging data.
Learn more here: https://www.w3schools.com/js/js_json_intro.asp
0
Json has better interoperability with java script and xml is more difficult to parse
0
Thanks a lot for your answer !