what is JSON? | what is XML? | WHY JSON IS BETTER THAN XML

what is JSON? | what is XML? | WHY JSON IS BETTER THAN XML

what is JSON? | what is XML? | WHY JSON IS BETTER THAN XML


Hi audience, In this article we will discuss why JSON is better than XML? but first, we will discuss what is JSON and where it is used and also something about XML and where it is used. I hope this is helpful for you if it is then don't forgot to comment and share with your friends.


what is JSON? what is JSON format

JSON : JavaScript Object Notation

Javascript Object Notation is an easy format for storing and transporting data. It is easy for humans to write and read.
It is used when data is sent from a server to a website. It is generated from Javascript, but most of the programming languages include code to generate and parse JSON format data.
JSON is a string with a specified data format it contains only properties, not methods.

what is XML?what is xml file

XML: Extensible Markup Language

Extensible Markup Language XML is a markup language like HTML. It is a markup language that defines a group of rules of encoding documents in a format that is understandable by humans and machines.
It is also used to receive data from a web server. It is not a replacement for HTML. XML is allowed to carry data, not to show data. XML tags are not already defined. You must define your own tags. It is platform and language independent.
The main thing that makes XML so powerful is its international acceptance.

Let's discuss Why JSON is Better than XML 

JSON is faster and better than XML because it is designed specifically for data interchange. JSON encoding is terse, which requires inferior bytes for conveyance.
JSON parsers are very less complex which requires very less processing time and memory space.
XML is slower because it is designed only for just data interchange. XML is much more difficult to parse than JSON. It is used more words than necessary.
JSON object has a type whereas XML data type is less.

It's some reason's why JSON is better than XML I hope this is helpful for you.
Written by @getbitcode

In this post, we learn what is JSON? what is JSON format, what is XML? what is XML file. If we made a mistake or any confusion, please drop a comment to reply or help you in easy learning.

Post a Comment

Previous Post Next Post