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

by Virender
October 21, 2015

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/

Share:

Tags:

0 0 votes
Article Rating
Subscribe
Notify of
guest
3 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
for ict 99
3 years ago

great

Unknown
4 years ago

you could check it out on http://jsontuneup.com for treeview your json object and wrong inside your json.

Awesome
6 years ago

I would also recommends http://jsonformatter.org it's all in one json tool.

Related posts