XML is getting old and when creating data files we are starting to guess what is better: JSON or XML?
However, there is not too much difference between XML and JSON in terms of compatibility, accessibility, and facility.
People with JSON can store only strings and numbers in plane format. By using XML you can define data field types and format size (precision, width etc.) of stored data. Some people wrongly thinking that XML allows you to store any data type user can come up with. XML cannot store images and movies. But you can record links that will be referred to locations where images and movies physically stored.
JSON format is hence slightly more sensitive to the human eye, pretty human-readable, and more limitary. It has less format flexibility; there are not a lot of data formats allowed by JSON than with XML.