📞 0339-0387701 (WhatsApp) Contact

« Back to Database & Data Handling (NCCIA)

What is the main difference between JSON and XML?

A. They are identical
B. JSON is lighter and easier to parse in web applications, while XML is more verbose with tags ✅
C. XML cannot store text
D. JSON cannot store numbers

Correct Answer: B. JSON is lighter and easier to parse in web applications, while XML is more verbose with tags

Explanation

JSON uses compact key-value syntax, while XML uses opening and closing tags, making JSON lighter.