There were big discussions about XMLvs. JSON. Speaking of performance, there really is no way JSON. Its so good recognizedfrom javascript. Parsing and coding is a way faster than XML.
However, there is a right to exist for XML. If you have very large data structures with lots of information, for example, this XMLmight be the best choice.
So, I think it really depends on what kind of data structure you want to transfer, but overall I always prefer data transfer JSONfor server-> client (javascript).
Read on: When do you prefer JSON over XML?
source
share