Home > JSON > About JSON – Part 1

About JSON – Part 1


JSON (JavaScript Object notation) is a language independent and lightweight data format that is widely used in the computer applications to interchange data. This format is serving as an alternative format to XML. Some of the other data interchange formats are OGDL, YAML and CSV. Google also developed its own format called Google Protocol Buffers and it is not part of data interchange language.

It is human readable format as other standard data interchange formats. It represents data in two structure

1.Object, it is a collection of name and value pair.

Syntax:

{ “<Name>”: “Value” ,

“<Name>” : “Value”

}

Example:

{
    "firstName": "Ayyappan"
}

2. Array: It is an ordered list of values define in JSON format.

Syntax:

{

“ArrayName” : [ “Value1”, “Value2”, “Value3″….”ValueN” ]

}

Example:

{
    "RBGColors": [ "Red", "Blue", "Green" ]

}

This is just an introduction about JSON data format and I will talk more about JSON data format in the upcoming blog post.

Advertisements
Categories: JSON Tags:
  1. No comments yet.
  1. February 6, 2013 at 2:06 pm

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: