JSON Examples

We discussed about Introduction to JSON, JSON Syntax,JSON Datatypes, JSON vs XML (Difference) and JSON Parsing in the previous posts.

If you quickly want to revisit those topics, please click through the below links:

Read More

JSON Parsing

In this post, we are going to discuss about how a JSON string can be parsed before we extract values from them.

As JSON is widely used in almost all web applications, we need to know the better way of parsing it to avail the benefit of using it.

JSON string can be parsed using following JavaScript functions:

  1. eval()
  2. parse()
Read More


Similarities between JSON and XML:
  • JSON is plain text like XML
  • JSON is “self-describing”(human readable) and “self-understandable” as XML
  • JSON is hierarchical (values within values)
  • JSON can be parsed by JavaScript
  • JSON data can be transported using AJAX
Read More

JSON Datatypes

JSON supports following datatypes:








It can be a decimal integer or decimal floating point number. Octal and hexadecimal formats are not supported.

Read More

JSON Syntax

Let’s discuss about JSON basic sytax. JSON syntax is primarily considered as a subset of JavaScript syntax.

JSON Syntax Rules

JSON syntax is as follows:

Read More

Introduction to JSON

JSON stands for JavaScript Object Notation, is a simple and easy to read, write, store and exchange data format. It has become popular worldwide as it is being used in  infinite projects. JSON is a best alternative solution for XML.

What is JSON
  • JSON stands for JavaScript Object Notation
  • JSON is lightweight text-data interchange format
  • JSON is platform/language independent
  • JSON is “self-describing” and “self understandable”
Read More

Pin It on Pinterest