Introduction to JSON : JSON Tutorial

JSON Tutorial -

    Welcome to JSON Programming Tutorial. We have designed the Tutorial in such a way that you can learn JSON in just 30 to 40 minutes.

    Initial lessons includes the basics for JSON followed by Implementation of JSON in various Programming Languages.

    You can skip sections that are lot relevant to you (if you are a java developer then JSON with PHP or Python will be not important to you)

    We have also incorporated as many examples as possible so that you get a good hold of JSON.

    Further you may find Questions related to troubleshooting and common issues that you may face while working with JSON.

Introduction to JSON

  • JSON stands for : JavaScript Object Notation.
  • JSON is an Open source, light-weight data-interchange format.
  • JSON is a sub-set of JavaScript.
  • JSON is an alternative to XML.
  • JSON is used to transmit data between sever and web application.
  • JSON is language independent just as XML.
  • JSON Internet media type is application/json.
  • JSON has a file extension of .json.
  • JSON format was introduced by Douglas Crockford.
  • It was State Software Inc. that named the JSON acronym.

  • Advantage of JSON over XML.

  • JSON is easy to read compared to XML.
  • JSON is more compact than XML and hence is loaded quickly.
  • JSON is more flexible compared to XML.
  • JSON is faster compared to XML.

  • Prerequisites

  • Knowledge of HTML would be great.
  • Should have a basic knowledge of JavaScript. Knowing JavaScript will make learning JSON very easy.
  • Knowledge of XML would be advantageous.

  • To sum up the above in a sentence, JSON is a sub set of JavaScript and is data-interchange light-weight Open source alternative to XML and supports a wide variety of applications.

    More over JSON is human readable and easy to understand format and learn.

    Advantage of using JSON over XML is that JSON simply returns data a a Object which is native to JavaScript so we do not require parsing as we do while working with XML.

    As JSON is Programming Language independent it can be used for data interchange between languages like C , C++, Java , C#, JavaScript, PHP, Perl, Python, ASP, ObjectiveC etc.

    Many API/Webservice now-a-days return data in JSON object format so it is important that you know how to handle json data.

    If you want to learn more about JSON standards read : RFC 7159 and EMAC-404.

    Table of Contents