let us consider the example so that we will get the idea what is xml and json
these both are content type
What is JSON?
- JSON stands for JavaScript Object Notation
- JSON is a lightweight data-interchange format
- JSON is language independent *
- JSON is "self-describing" and easy to understand
- The fundamental difference between XML and JSON is that XML is a meta-language and JSON is a markup language.
- That is, XML syntax is designed specifically to have no inherent semantics.
- Particular element names don't mean anything until a particular processing application processes them in a particular way.
- By contrast, JSON syntax has specific semantics built in: stuff between {} is an object, stuff between [] is an array, etc.
- A JSON parser, therefore, knows exactly what every JSON document means.
- An XML parser only knows how to separate markup from data.
No comments:
Post a Comment