About serialization and deserialization of JSON in asp.net (1/4)

Source: Internet
Author: User
Tags serialization

JSON is a data format designed specifically for Web page special effects code that runs on a Web page in a browser. There are more and more scenarios for using JSON in Web apps, this article describes the serialization and deserialization of JSON in the ASP tutorial. NET, a brief introduction to JSON, a asp.net tutorial on how to serialize and deserialize the processing, serialization and deserialization of date time, collection, and dictionary processing.

First, JSON introduction
JSON (JavaScript Object Notation,javascript objects notation) is a lightweight data interchange format.

JSON is a collection of "name-value pairs." The structure consists of a brace ' {} ', bracket ' [] ', comma ', ', colon ': ', double quotation mark ' ' ' ' ', ' which contains a data type of object,number,boolean,string,array, NULL, etc.

JSON has the following form:

Object is an unordered set of "name-value pairs" where an object ends with "{" and "}". Each "name" follows a ":" and multiple "name-value pairs" are separated by commas. Such as:

var user={"name": "John", "Gender": "Male", "Birthday": "1980-8-8"}
An array is an ordered set of values, with an array beginning with "[", Ending with "]", and separating values using "." Such as:

var userlist=[{"user": {"name": "John", "Gender": "Male", "Birthday": "1980-8-8"}},{"user": {"name": "Dick", "gender": "Male", " Birthday ":" 1985-5-8 "}}];
A string is a collection of any number of Unicode characters enclosed by double quotes, which is escaped using backslashes.

Home 1 2 3 4 last page
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.