+ 1

What is the difference between XML and JASON ?

21st May 2018, 2:00 PM
MD Omer Arafat
MD Omer Arafat - avatar
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
21st May 2018, 2:31 PM
Anis
Anis - avatar
0
Json has better interoperability with java script and xml is more difficult to parse
21st May 2018, 2:06 PM
Max
Max - avatar
0
Thanks a lot for your answer !
21st May 2018, 2:21 PM
MD Omer Arafat
MD Omer Arafat - avatar