programming we consider all important topic for knowledge about controls,web Services, JSON, Ajax, database, and interview related Question. In this and sql server tutorial blog we give many examples of jquery as like How Play YouTube Video in Your Website by URL, How to Play YouTube Videos in by using Jquery , Jquery Change div background on mouseover in , JQuery UI Datepicker (Calendar) etc.

Thursday, September 25, 2014 Ajax Json Introduction

What is JSON how to use with Asp.Net : 

What is JSON:

JSON (JavaScript Object Notation) is a lightweight data-interchange format. It is easy for humans to read and write. It is easy for machines to parse and generate.
  • JSON is syntax for storing and exchanging data.
  • JSON is an easier to use alternative to XML. Ajax Json Introduction
Json Introduction

JSON universal data structures:-

  • A collection of name/value pairs (JSON Array).
  • An ordered list of values. Realized as an array, vector, list, or sequence.

These are universal data structures.

All Modern programming languages support them in one form or another. It makes sense that a data format that is interchangeable with programming languages also be based on these structures.

Uses of JSON:-

JSON format is used for serializing & transmitting structured data over network connection.
This is primarily used to transmit data between server and web application.
Web Services and APIs use JSON format to provide public data.
It can be used with modern programming languages.

Why JSON:-

For AJAX applications, JSON is faster and easier than XML:
  • Using XML
  • Fetch an XML document
  • Use the XML DOM to loop through the document
  • Extract values and store in variables

Using JSON:-

  • Fetch a JSON string
  • eval() the JSON string 

JSON Syntax:

JSON syntax is a subset of the JavaScript object notation syntax:
  • Data is in name/value pairs
  • Data is separated by commas
  • Curly braces hold objects
  • Square brackets hold arrays
Web server control Related Post :

No comments:

Post a Comment