What is JSON? Why use JSON? JSON Types? JSON Helpful Tools?

WHAT IS JSON? WHY USE JSON? JSON IMPORTANCE ?


What Is JSON

JSON is short for JavaScript Object Notation, is a data-interchange format. It’s used to store information in an organized ways. JSON support numbers, Boolean, strings, null, arrays and objects   .
Its plain text file which supported by many programming languages. JSON is very useful for JavaScript-based application like websites, SPA (Single Page Application).
JSON data can be loaded asynchronously easier and faster than XML.

Sample
{name: 'John'}

Why Use JSON?

JSON is very light-weight then XML
JSON support by all platform and programming language
JSON is very easier to read than XML

Types of JSON

String - string is a sequence zero and more Unicode characters.

Example -
{ string : "value"}

Numbers - Its similar to Java and C number, but octal and hexadecimal are not allowed.

Example -
{ number : 5}

Boolean (True/False) - true or false

Example -
{ IsTest : true}

Null - empty

Example-
Null

Arrays - Its collection of values. Its start with [ (left brackets) and with ] (right bracket). Values are separated by , (comma).

Example-
{
   "state": ["Delhi", "Mumbai"  ]
}

Objects/Documents - Object is an unordered set of name/ value pairs. Its start with { (left brace) and end with } (right brace).

Example-
{
   "id": "1001",
   "name": "John"
}

Some useful tools to view and edit JSON

http://jsonviewer.stack.hu/
http://codebeautify.org/jsonviewer
http://www.jsoneditoronline.org/
http://json.parser.online.fr/
https://jsonformatter.curiousconcept.com/
http://visualizer.json2html.com/
https://jsonviewer.codeplex.com/
http://json2table.com/


Previous
Next Post »

1 comments:

Click here for comments
Thanks for your comment