Difference between JSON and XML
Now, we are going to have a look at the difference between JSON and XML. XML, or Extensible Markup Language, is also a popular language designed to store and transport data. So, we are going to have a brief look at the difference between JSON, and XML. Have a look –
|XML stands for Extensible Markup Language.
|In JSON we use extension .json
|In XML, we use extension .xml
|An array is supported in JSON
|An array is not supported in XML.
|It is the way of representing objects.
|It is a markup language and uses a tag structure to represent data items.
|It does not provide any support for namespaces.
|It supports namespaces.
|JSON does not support comments.
|XML supports comments.
|It supports UTF-8 encoding.
|It supports various encoding Formats.
So, these were some different points of difference between JSON and XML. You can go through them, and also explore more about both XML and JSON.