【JS】Intermediate4:JSON

1. JSON(JavaScript Object Notation)

A set of text formatting rules for storing and transferring data in a machine and human readable way.

The object literal syntax of JavaScript

A totally different language

2.Use JSON

converts an object into a JSON string

jsonString becomes {"make": "McLaren", "model": "MP4-12C", "miles": 5023 }.

3.

The string can then be converted back to a JavaScript object

原文地址:https://www.cnblogs.com/yzhen/p/3660358.html