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.