JSON vs XML

In this tutorial, we will see the basic difference between JSON and XML and we will see is JSON better than XML.



What is JSON?

JSON stands for JavaScript Object Notation. It is an open-standard file format that is used for browser-server communication or sending some data from the server to the client. A common use of JSON is to exchange and store data to/from a web server. JSON is not a language. JSON is lightweight and self describing. JSON is originated from JavaScript and it is easy to read and write. JSON is language independent and supports data structures such as array and objects



What is xml?

XML stands for Extensible Mark-up Language and it was designed to store and transport data. It is a kind of language. XML can be suitable for both human and machine readable. We can create own tag in XML and it has Heavy Weight.




JSON is Like XML It is Because:

Both JSON and XML are self describing it means both are human readable

Both JSON and XML are hierarchical it means values within values

Both JSON and XML can be parsed and mostly programming languages use

Both JSON and XML can be fetched with an XML Http Request


JSON is Unlike XML It is Because:

JSON doesn't use end tag but XML use

JSON is shorter but XML is not shorter

JSON is quicker to read and write but XML not

JSON can use arrays but XML not


Disadvantage:

We can not transfer video, audio and images files in JSON.


JSON vs XML


Watch Video:

Conclusion:

Thank you for reading this blog. I wish you the best in your journey in learning and mastering in JSON and XML🔥🔥.


Previous Post
Next Post

Hello, I am Ashish Yadav. Youtuber | Blogger | Programmer | Digital Marketer. Working on 3 Youtube Channel: 1. Expo Ashish 2. Expo Facts 3. Best Code Creator

Related Posts

Do Subscribe My Youtube Channel