Which one is efficient JSON or XML in the case of J2EE client server applications?

I am using jQuery in my J2EE application. I still use XML to get a pass and get data from the server. My client side code is very vague. Is it better to switch from XML to JSON?

+3
source share
1 answer

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?

+7
source

Source: https://habr.com/ru/post/1750435/


All Articles