JavaScript JSON Cookbook
暫譯: JavaScript JSON 食譜
Ray Rischpater
- 出版商: Packt Publishing
- 出版日期: 2015-06-27
- 售價: $2,010
- 貴賓價: 9.5 折 $1,910
- 語言: 英文
- 頁數: 192
- 裝訂: Paperback
- ISBN: 1785286900
- ISBN-13: 9781785286902
-
相關分類:
JavaScript
海外代購書籍(需單獨結帳)
商品描述
Over 80 recipes to make the most of JSON in your desktop, server, web, and mobile applications
About This Book
- Create fast and dynamic JavaScript applications that implement JSON
- Practical examples to show you how to leverage JSON from a variety of application domains
- Become the go-to person for building JSON-enabled web applications in your organization
Who This Book Is For
If you're writing applications that move structured data from one place to another, this book is for you. This is especially true if you've been using XML to do the job because it's entirely possible that you could do much of the same work with less code and less data overhead in JSON.
While the book's chapters make some distinction between the client and server sides of an application, it doesn't matter if you're a frontend, backend, or full-stack developer. The principles behind using JSON apply to both the client and the server, and in fact, developers who understand both sides of the equation generally craft the best applications.
What You Will Learn
- Learn to use JSON in a type-safe way to avoid common data typing errors
- Exchange data with NoSQL databases such as MongoDB and CouchDB with JSON
- Make the most of JSON in AJAX web applications, with or without a framework
- Exchange data between servers and mobile applications running on Android and iOS with JSON
- Practical examples to show you how to leverage JSON from a variety of application domains
In Detail
JSON (JavaScript Object Notation) is a lightweight text-based data interchange format used to create objects to transfer data over the Internet. It's widely used today by common web applications, as well as mobile applications.
This book gives you clear ways that you can exchange objects using JSON, regardless of whether you're developing a web or traditional networked application. You'll start with a brief refresher on JSON and JavaScript syntax and read and write on the client and server. Then, you'll learn how to use JSON in simple AJAX applications using AngularJS and jQuery. Next, you will learn how to exchange objects with databases using MongoDB and CouchDB. You'll also explore how to use JSON in a type-safe manner, writing programs that have fewer bugs.
商品描述(中文翻譯)
**超過 80 個範例,充分利用 JSON 在桌面、伺服器、網頁和行動應用程式中的應用**
## 本書介紹
- 創建快速且動態的 JavaScript 應用程式,實現 JSON
- 實用範例展示如何在各種應用領域中利用 JSON
- 成為您組織中構建 JSON 支援的網頁應用程式的首選人選
## 本書適合誰
如果您正在編寫將結構化數據從一個地方移動到另一個地方的應用程式,那麼這本書就是為您而寫的。尤其是如果您一直在使用 XML 來完成這項工作,因為您完全可以用更少的程式碼和更少的數據開銷來使用 JSON 完成大部分相同的工作。
雖然本書的章節在應用程式的客戶端和伺服器端之間做了一些區分,但無論您是前端、後端還是全端開發者都無所謂。使用 JSON 的原則適用於客戶端和伺服器端,事實上,理解這兩個方面的開發者通常能夠創造出最佳的應用程式。
## 您將學到什麼
- 學習以類型安全的方式使用 JSON,以避免常見的數據類型錯誤
- 使用 JSON 與 NoSQL 數據庫(如 MongoDB 和 CouchDB)交換數據
- 在 AJAX 網頁應用程式中充分利用 JSON,無論是否使用框架
- 在運行 Android 和 iOS 的伺服器與行動應用程式之間使用 JSON 交換數據
- 實用範例展示如何在各種應用領域中利用 JSON
## 詳細內容
JSON(JavaScript 物件表示法)是一種輕量級的基於文本的數據交換格式,用於創建物件以在互聯網上傳輸數據。它今天被常見的網頁應用程式以及行動應用程式廣泛使用。
本書提供了清晰的方法,讓您可以使用 JSON 交換物件,無論您是在開發網頁還是傳統的網絡應用程式。您將從簡要回顧 JSON 和 JavaScript 語法開始,並在客戶端和伺服器上進行讀取和寫入。接著,您將學習如何在使用 AngularJS 和 jQuery 的簡單 AJAX 應用程式中使用 JSON。然後,您將學習如何使用 MongoDB 和 CouchDB 與數據庫交換物件。您還將探索如何以類型安全的方式使用 JSON,編寫更少錯誤的程式。