XML only allows string data. For JSON, you can specify whether it is boolean/string/number etc. JSON data is also faster to parse as it is javascript versus you need to use an API to read XML data.