How about high three nights?-JSON

Source: Internet
Author: User
: This article mainly introduces how high three nights works-JSON. if you are interested in the PHP Tutorial, please refer to it. Hi

I went to eat hot pot last night. Yes, you didn't guess it was wrong. I was in Chengdu.

There will be a treat for senior students tonight, and there will be a hot pot for friends tomorrow. Should the busy week have to be high for three consecutive nights (single graduate dogs are so easy to satisfy ). So I had to leave my business to write and write (not to write ...)

1. JSON

----- Introduction -----

Javascript Object Notation, a lightweight data exchange format

---

Basic syntax: Four Basic rules

The parallel data are separated by commas; the ING is represented by colons; the parallel data set (array) is represented by []; the ing set (object) is represented {}

For example, Beijing has an area of 16800 square kilometers and a resident population of 16 million people. Shanghai has an area of 6400 square kilometers and a resident population of 18 million people.

In JSON format:

[

{"City": "Beijing", "area": 16800, "population": 1600 },

{"City": "Shanghai", "area": 6400, "population": 1800}

]

---

Advantages: simple format, easy to read/write and transmit; support for multiple languages

Disadvantage: the character set must be Unicode; the syntax is too rigorous

The above describes how high three nights can be like this-JSON, including content, hope to be helpful to friends who are interested in PHP tutorials.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.