JSON is a lightweight data interchange format for describing data structures that is text-based and easy to parse and generate.
JSON has two structures
json is simply an object and an array in javascript, so these two structures are object and array two structures, through which a variety of complex structures can be represented
1, object: object in js is represented as "{}" enclosed content, data structure is {key: value,key: value,... In the object-oriented language, key is the attribute of the object, value is the corresponding attribute value, so it is easy to understand, the value method is the object.key obtains the attribute value, the type of the attribute value can be number, string, array, object several.
2, array: array in js is the parenthesis "[]" enclosed content, data structure is ["java","javascript","vb",...] The value is the same as in all languages, the index is used to obtain, and the type of field value can be a number, string, array, and object. After object, array 2 structures can be combined into a complex data structure.
Script home tool class small program online! Wechat applet search script home toolbox or scan the following applet code directly open applet!
Small program toolbox is still improving, welcome to put forward valuable comments!
In order to repay the attention of the majority of users to Script home, Script home carries out red envelopes, books and gifts from time to time
Follow the official wechat public platform to participate in the event!
Finally, thank you for your support of Script House Online tools!