Asp.net 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.
Asp.net 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 :

Comments

Popular posts from this blog