- 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".
推薦閱讀
- 多媒體CAI課件設計與制作導論(第二版)
- FuelPHP Application Development Blueprints
- 程序設計與實踐(VB.NET)
- Python從菜鳥到高手(第2版)
- Vue.js入門與商城開發實戰
- Mastering AndEngine Game Development
- C語言程序設計
- Node.js:來一打 C++ 擴展
- Microsoft Azure Storage Essentials
- Raspberry Pi Robotic Blueprints
- Clean Code in C#
- Go語言從入門到精通
- 邊玩邊學Scratch3.0少兒趣味編程
- Monitoring Docker
- Extending Docker