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.
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
- Validation checkbox control using JavaScript
- Check box in ASP.NET GridView
- Ckeck box list example-using-javascript.
- Asp.net checkbox list Example
- Asp.net Label control
- Textbox Asp.net control
- ImageButton control
- Asp.net Imagebutton control example
- Asp.net Button control.
- Literal control in Asp.net
- Displaying the textbox value in javascript Messagebox
- Get selected radio button values using JQuery.
- How do you do html text encodes using JavaScript
- Cropping image using jQuery in asp.net
- Checkboxlist control in asp net
Comments
Post a Comment