JSON Tutorial

This tutorial is basically for the beginners as well as for the professionals. This tutorial provides deep knowledge in JSON technology like JSON fundamentals, example, syntax, array, object, encode, decode, file, date and date format.

This tutorial begins a set of tutorials on JSON and discusses definition, specification, What it looks like in real world, a bit of History of JSON, comparison between Relational Database and JSON, a brief understanding of when to elect JSON over Relational Database, XML vs JSON, Syntax of JSON, typical examples of real world uses of JSON.

Ultimately, JSON is used as a data model, but compared to other data models like Relational Database or XML, it has a low learning curve (Progress towards new skills). In fact, if you are familiar with any of the modern day programming language (e.g PHP, JavaScript, Ruby) you are already familiar with the data structures used in JSON. Moreover, any modern programming language can work with JSON. May be that is why JSON has got wide acceptance from the developer community.


Before you proceed you should have some basic knowledge and understanding of javascript, how web application work over HTTP.


  • JSON(JavaScript Object Notation) is a lightweight text-based open standard data-interchange format.
  • It is human readable.
  • JSON is derived from a subset of JavaScript programming language (Standard ECMA-262 3rd EditionóDecember 1999).
  • It is entirely language independent and can be used with most of the modern programming languages.
  • Supports data structure like array and objects.
  • JSON is often used to serialize and transfer data over a network connection, for example between web server and a web application. In computer science, serialization is a process to transforming data structures and objects in a format suitable to be stored in a file or memory buffer or transmitted over a network connection. Later on, this data can be retrieved. Because of the very nature of the JSON, it is useful for storing or representing semi structured data
  • JSON is a standard and is specified on RFC4627 on IETF (International Engineering Task Force). The specification is made by Douglas Crockford on July 2006.
  • JSON files are saved with .json extension.
  • Internet media type of JSON is "application/json".

Cinque Terre

By Er.Trilochan Tarai ,Founder of java8s.com . You can contact me at trilochan@java8s.com

Copyright © 2019 By java8s.com. All Rights Reserved.