- Web Development with MongoDB and Node(Third Edition)
- Bruno Joseph D'mello Mithun Satheesh Jason Krol
- 176字
- 2021-07-08 10:32:45
JSON
JavaScript Object Notation (JSON) is the standard syntax used when dealing with data in JavaScript as well as most other languages and web services. The basic premise of JSON is that it looks exactly like a standard JavaScript object with a few strict exceptions:
- JSON is pure text. There are no data types with properties; that is, date values are stored as strings and so on
- All names and string values must be in double quotes
- There can be no functions as properties
Let's take a quick look at a pretty standard JSON object:
{ "title": "This is the title", "description": "Here is where the description would be", "page-count": 150, "authors": [ { "name": "John Smith" }, { "name": "Jane Doe" }, { "name": "Andrea Johnson" } ], "id": "1234-567-89012345" }
If you are at all familiar with XML, JSON is somewhat similar, except it is much easier to read and make sense out of. As described best by the ECMA, "JSON is a text format that facilitates structured data interchange between all programming languages".
推薦閱讀
- 零基礎搭建量化投資系統:以Python為工具
- Oracle 11g從入門到精通(第2版) (軟件開發視頻大講堂)
- PyTorch自動駕駛視覺感知算法實戰
- 單片機C語言程序設計實訓100例:基于STC8051+Proteus仿真與實戰
- INSTANT MinGW Starter
- Spring Boot進階:原理、實戰與面試題分析
- Yii Project Blueprints
- 圖數據庫實戰
- Oracle GoldenGate 12c Implementer's Guide
- Scratch趣味編程:陪孩子像搭積木一樣學編程
- ActionScript 3.0從入門到精通(視頻實戰版)
- Python機器學習與量化投資
- Visual C++從入門到精通(第2版)
- Learning Concurrency in Python
- Python量子計算實踐:基于Qiskit和IBM Quantum Experience平臺