【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
浙公网安备 33010602011771号