Official translation unavailable. Translate this page with Google:

[en] JavaScript Object Notation (JSON) is an open-standard file format. JSON uses human-readable text to transmit data objects consisting of name–value pairs, and array data types (or any other serializable value). JSON is a very common data format used for asynchronous browser–server communication, including as a replacement for XML.

[en] There are multiple online resources describing the similarities and differences between JSON and XML. The table below describes a portion of them:

[en] JSON

[en] XML

[en] It is JavaScript Object Notation

[en] It is Extensible markup language

[en] It is based on JavaScript language.

[en] It is derived from SGML.

[en] It is a way of representing objects.

[en] It is a markup language and uses tag structure to represent data items.

[en] It does not provides any support for namespaces.

[en] It supports namespaces.

[en] It supports array.

[en] It doesn’t supports array.

[en] Its files are very easy to read as compared to XML.

[en] Its documents are comparatively difficult to read and interpret.

[en] It doesn’t use end tag.

[en] It has start and end tags.

[en] It is less secure.

[en] It is more secure than JSON.

[en] It doesn’t supports comments.

[en] It supports comments.

[en] It supports only UTF-8 encoding.

[en] It supports various encoding.

[en] Source: https://www.geeksforgeeks.org/difference-between-json-and-xml/