top of page

Difference between JSON format and XML format


1- JSON

2- XML


JSON (JavaScript Object Notation) is a lightweight data-interchange format and it completely language independent. It is based on the JavaScript programming language and easy to understand and generate.

Example :

filter_none


brightness_4

{"Geeks":[

{ "firstName":"Vicky", "lastName":"Kothari" },

{ "firstName":"Suraj", "lastName":"Kumar" },

{ "firstName":"John", "lastName":"Smith" },

{ "firstName":"Peter", "lastName":"Gregory" }

]}


XML (Extensible markup language) was designed to carry data, not to display data. It is a W3C recommendation. Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. The design goals of XML focus on simplicity, generality,

and usability across the Internet. It is a textual data format with strong support via Unicode for different human languages. Although the design of XML focuses on documents, the language is widely used for the representation of arbitrary data structures such as those used in web services.

Example :

JSON XML


It is JavaScript Object Notation It is Extensible markup language

It is based on JavaScript language. It is derived from SGML.

It is a way of representing objects. It is a markup language and uses tag structure to represent data items.

It does not provides any support for namespaces. It supports namespaces.

It supports array. It doesn’t supports array.

It doesn’t use end tag. It has start and end tags.

It is less secured. It is more secured than JSON.

 
 
 

Comentarios


REALCODE4YOU

Realcode4you is the one of the best website where you can get all computer science and mathematics related help, we are offering python project help, java project help, Machine learning project help, and other programming language help i.e., C, C++, Data Structure, PHP, ReactJs, NodeJs, React Native and also providing all databases related help.

Hire Us to get Instant help from realcode4you expert with an affordable price.

USEFUL LINKS

Discount

ADDRESS

Noida, Sector 63, India 201301

Follows Us!

  • Facebook
  • Twitter
  • Instagram
  • LinkedIn

OUR CLIENTS BELONGS TO

  • india
  • australia
  • canada
  • hong-kong
  • ireland
  • jordan
  • malaysia
  • new-zealand
  • oman
  • qatar
  • saudi-arabia
  • singapore
  • south-africa
  • uae
  • uk
  • usa

© 2023 IT Services provided by Realcode4you.com

bottom of page