Skip to main content

JSON

JSON stands for JavaScript Object Notation.JSON is a light weighted format that is used to exchanging and storing data.It is based on a subset of JavaScript language and JSON is text based written language.some JavaScript is not JSON, and some JSON is not JavaScript.

JSON values can consist of:objects (collections of name-value pairs) arrays (ordered lists of values) strings (in double quotes) numbers true, false, or null.JSON is language independent.
It is a much-more compact way of transmitting sets of data across network connections as compared to XML.
Sending data to the server:
var myObj = { name: "John", age: 31, city: "New York" };
var myJSON = JSON.stringify(myObj);
Receiving data from the server:
var myJSON = '{"name":"John", "age":31, "city":"New York"}';
var myObj = JSON.parse(myJSON);
JSON basic built function
JSON.stringify()
JSON.parse()


Comments

Popular posts from this blog

CSS

CSS stands for Cascading Style Sheets.CSS is mainly used to present the layout of webpage.Most of facilities which are not available in html are present here.specially colors,fonts and layouts are establish in css sheets.CSS should be saved with .css extension.CSS specifications are maintained by W3C. CSS can be added in 3 ways. i)Inline -   By using the style attribute in HTML elements           This method is used to add style to the specific tag           Eg: <html>                 <body>                  <h1 style="color:blue;">hello</h1>                                                          </body>                 ...

API

API stands for Application Programming interface.API is an interface used by programs to interact with application,which mean that API allow the applications  to communicate with each other. Really API is not a database or server,API is the code that give the access point for the server.

IDE

IDE is  stands for  integrated development environment  ( IDE ) .It is a software application which provides the facilities to programmers for their software development.IDE helps to programmers to provide the maximum productivity. Examples for IDE Microsoft visual studio Eclipse Aptana studio 3 orcle netbeans 7 code::blocks IDE advantages Access from any where with internet access. Minimal configuration needed Centralized workspace No need of install to lot of softwares.