Difference Between JSON and XML



Both JSON and XML are the most popular data transversal resources in programming world.Due to their various important characteristics and features both of these resources are widely used globally.

On the basis of their features following are the important differences JSON and XML

Sr. No. Key JSON XML
1 Abbreviation JSON stands for JavaScript Object Notation. On other hand XML stands for Extensible Mark-up Language.
2 Type JSON format is data interchangeable. On other hand XML format is Mark-up language.
3 Based on JSON is derived from JavaScript language from where it puts the feature to represents the data in a way of representing objects. On other hand XML is derived from SGML and uses tag structure to represent data items.
4 Name-space and Array JSON does not provides any support for name-spaces but supports Arrays. On other hand supports name-spaces but does not support Arrays.
5 Secured JSON is less secured as compare to that of XML. On other hand XML is comparatively more secure than JSON.
5 Encoding JSON supports only UTF-8 encoding. On other hand along with UTF-8 encoding XML also supports various other encoding.
Updated on: 2020-02-24T08:08:04+05:30

331 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements