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)
I took the bus to work a few days ago. Based on m...
If you are using Alibaba Cloud Server, you need t...
Table of contents 1. Introduction 2. Rendering 3....
Installation environment: CentOS7 64-bit, MySQL5....
Table of contents Typical Cases Appendix: Common ...
This article uses examples to illustrate the usag...
Recently, when I turned on my computer, I saw tha...
Preface In Linux kernel programming, you will oft...
<br />Every family has its own problems, and...
Simply put, delayed replication is to set a fixed...
Everything is a file! UNIX has already said it. E...
version: centos==7.2 jdk==1.8 confluence==6.15.4 ...
There are many import methods on the Internet, an...
First, let’s take a look at the picture: Today we...
Preface In the Linux kernel, netfilter is a subsy...