- 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".
推薦閱讀
- Oracle數據庫從入門到運維實戰
- The Computer Vision Workshop
- C語言程序設計
- Learning Zurb Foundation
- C#應用程序設計教程
- 深入理解C指針
- Cocos2d-x Game Development Blueprints
- Visual FoxPro 6.0程序設計
- 零基礎輕松學C++:青少年趣味編程(全彩版)
- Ext JS 4 Plugin and Extension Development
- Python網絡爬蟲實例教程(視頻講解版)
- Spring Data JPA從入門到精通
- Scratch編程從入門到精通
- JavaScript語法簡明手冊
- 循序漸進Vue.js 3前端開發實戰