JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate. It is based on a subset of the JavaScript Programming Language, Standard ECMA-262 3rd Edition - December 1999. JSON is a text format that is completely language independent but uses conventions that are familiar to programmers of the C-family of languages, including C, C++, C#, Java, JavaScript, Perl, Python, and many others. These properties make JSON an ideal data-interchange language.JSON’s lightweight payload allows for reduced bandwidth needs and faster transfers.That is Why Json is considered superior to XML.It needs lesser processing time so it is faster.“every object is a namespace. Its set of keys is independent of all other objects, even exclusive of nesting. Also, JSON uses context to avoid ambiguity, just as programming languages do,” that validation of inputs is the
A simple example showing JSON Syntax:-
JSON is designed to be a data exchange language which is human readable and easy for computers to parse and use. JSON is directly supported inside JavaScript and is best suited for JavaScript
applications thus providing significant performance gains over XML, which requires extra libraries to
retrieve data from Document Object Model (DOM) objects. JSON is estimated to parse up to one hundred times faster than XML in modern browsers, but despite its claims of noteworthy
performance, arguments against JSON include lack of namespace support, lack of input validation and
extensibility drawbacks. Crockford addresses such arguments by claiming that
responsibility of individual domain applications, andthat the lack of extensibility claims is addressed by the
flexibility of JSON constructs.A simple example showing JSON Syntax:-
{
"firstname":"Janu"
"lastname":"Bajaj"
}
No comments:
Post a Comment