JSON ( A JSON is built on two structures:A collection of name/value pairs. In different languages, this is understood as an object, record, struct, dictionary, hash table, keyed list, or associative array. An ordered list of values. In most languages, this is understood as an array. 2. JSON format1. ObjectAn object is an unordered collection of name/value pairs. An object starts with a "{" (left bracket) and ends with a "}" (right bracket). Each "name" is followed by a ":" (colon); "name/value" pairs are separated by "," (commas). 2. ArraysAn array is an ordered collection of values. An array starts with "[" (left bracket) and ends with "]" (right bracket). Use "," (comma) to separate values. The content of the three values A Four ExamplesNote: The string must be enclosed in double quotes. Arrays and objects can be nested within arrays { "name": "BeJson", "url": "http://www.bejson.com", "page": 88, "isNonProfit": true, "address": { "street": "Technology Park Road.", "city": "Suzhou, Jiangsu", "country": "China" }, "links": [ { "name": "Google", "url": "http://www.google.com" }, { "name": "Baidu", "url": "http://www.baidu.com" }, { "name": "SoSo", "url": "http://www.SoSo.com" } ] } SummarizeThis article ends here. I hope it can be helpful to you. I also hope you can pay more attention to more content on 123WORDPRESS.COM! You may also be interested in:
|
>>: Summary of four ways to introduce CSS (sharing)
Note 1: Solve the problem of slow connection to M...
If you want to insert 5 records into table1, the ...
<style type="text/css"> Copy code ...
The latest Perfect Aloe Vera Gel packaging box ha...
Preface This article mainly introduces the releva...
MySQL software installation and database basics a...
Preface Based on my understanding of MySQL, I thi...
The mini program implements a complete shopping c...
Table of contents Jenkins installation Install Ch...
Preface: The MySQL database provides a wide range...
Table of contents Preface Problem Description Cau...
Table of contents 1. Database design 2. Front-end...
I encountered such a problem when doing the writte...
Table of contents Preface difficulty Cross-domain...
Table of contents 1. Introduction 2. Use 1. @Comp...