What is JSON?
JAvaSBytesOBjectNIn a narrow sense, JSON is a subset of javascript and can be called through eval. In a broad sense, JSON is now a data structure.
JSON format?
Typical Data a: {"Status": false, "ErrorCode": 4098, "ErrorMessage": "incorrect user password", "Data": 0}
Typical data B:
{Status: true, ErrorCode: 0, ErrorMessage: null, Data: {Contacts: [], SysCodeName: [{Id: "1", Code: "01", CName: "Round Table Meeting", EName: null, CodeType: "callActivityType", CreateTime: "/Date (1346652875250)/", UpdateTime: "/Date (1346652875250)/", IsActive: "Y" },{ Id: "10", Code: "10", CName: "International Conference", EName: null, CodeType: "callActivityType", CreateTime: "/Date (1346652417583)/", UpdateTime: "/Date (1346652417583)/", IsActive: "Y"},], Products: []}
First, there is a braces in the outermost column to identify what data it is.
Second, in braces, there is a list. Each value in the list is a key-value pair, separated. Add "" to the left and right of the key, with the same value.
Finally, the value of the key-value pair can be an array, which is wrapped in [].
In short: A c # object corresponds to a braces; a list or array in c # corresponds to a braces.