JSON – Simplified

JSON – Java Script Object Notation

  • Lightweight Syntax for storing and exchanging data across web-services
  • Alternative to XML
  • Language Independent – Data is of text format
  • Self-describing and easy to understand
  • Javascript  functions can be used to convert JSON objects to Javascript objects
  • JSON are shorter
  • Use Arrays
  • Faster for AJAX applications
  • Syntax
    • Data is represented as name/value pairs
    • Data is separated by commas
    • Curly braces hold the data   { “firstName”: “John”,  “lastName”:” Doe”}
    • Square brackets hold arrays  { “cars” : [ {“model”:”BMW”,    “series” : ” Q-Series” }, {“model”:”Audi”, “series” : ” Z-series” } ]
  • File type — ” .json”
  • MIME Type  —  “application/json”

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

Cheat Sheet To JAVA Latest Technology

%d bloggers like this: