JavaScript JSON Cookbook

Ray Rischpater

  • 出版商: Packt Publishing
  • 出版日期: 2015-06-27
  • 售價: $1,930
  • 貴賓價: 9.5$1,834
  • 語言: 英文
  • 頁數: 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,無論是否使用框架。
- 使用JSON在運行Android和iOS的移動應用程式與伺服器之間交換資料。
- 實用範例,展示如何在各種應用領域中利用JSON。

詳細內容

JSON(JavaScript Object Notation)是一種輕量級的基於文字的資料交換格式,用於在網際網路上傳輸資料。它在今天的常見網頁應用程式和移動應用程式中被廣泛使用。

本書將向您介紹如何使用JSON交換物件,無論您是開發網頁還是傳統的網路應用程式。您將從JSON和JavaScript語法的簡要複習開始,並在客戶端和伺服器端進行讀寫。然後,您將學習如何在使用AngularJS和jQuery的簡單AJAX應用程式中使用JSON。接下來,您將學習如何使用MongoDB和CouchDB與資料庫交換物件。您還將探索如何以類型安全的方式使用JSON,撰寫具有較少錯誤的程式。