JavaScript JSON cookbook over 80 recipes to make the most of JSON in your desktop, server, web, and mobile applications
About This BookCreate fast and dynamic JavaScript applications that implement JSONPractical examples to show you how to leverage JSON from a variety of application domainsBecome the go-to person for building JSON-enabled web applications in your organizationWho This Book Is ForIf you're writing...
Uložené v:
| Hlavný autor: | |
|---|---|
| Médium: | E-kniha |
| Jazyk: | English |
| Vydavateľské údaje: |
Birmingham, England Mumbai India
PACKT Publishing
2015
Packt Publishing, Limited Packt Publishing Limited |
| Vydanie: | 1st ed. |
| Edícia: | Quick Answers to Common Problems |
| Predmet: | |
| ISBN: | 9781785284359, 1785286900, 9781785286902, 1785284355 |
| On-line prístup: | Získať plný text |
| Tagy: |
Pridať tag
Žiadne tagy, Buďte prvý, kto otaguje tento záznam!
|
Obsah:
- Encoding and decoding base64 using an ArrayBuffer -- Compressing object-body content from a Node.js server built using the express module -- Chapter 9 : Querying JSON with JSONPath and LINQ -- Introduction -- Using the JSONPath dot-notation to query JSON documents -- Using JSONPath bracket-notation to query JSON documents -- Using JSONPath scripting to construct more complicated queries -- Using JSONPath in your web application -- Using JSONPath in your Node.js application -- Using JSONPath in your PHP application -- Using JSONPath in your Python application -- Using JSONPath in your Java application -- Using JSONPath with SelectToken to query for JSONPath expressions in your C# application -- Using LINQ with Json.NET to query JSON in your C# application -- Chapter 10 : JSON on Mobile Platforms -- Introduction -- Parsing JSON on Android -- Generating JSON on Android -- Parsing JSON on iOS in Objective-C -- Generating JSON on iOS in Objective-C -- Parsing JSON on iOS using Swift -- Generating JSON on iOS using Swift -- Parsing JSON using Qt -- Generating JSON using Qt -- Index
- Searching for a document in MongoDB with Node.js -- Updating a document in MongoDB with Node.js -- Deleting a document in MongoDB using Node.js -- Using REST to search MongoDB -- Using REST to create a document in MongoDB -- Using REST to update a document in MongoDB -- Using REST to delete a document in MongoDB -- Chapter 6 : Using JSON with CouchDB -- Introduction -- Installing and setting up CouchDB and Cradle. -- Connecting to a CouchDB database using Node.js and Cradle -- Creating a CouchDB database using Node.js and Cradle -- Creating a document in CouchDB using Node.js and Cradle -- Setting up a data view in CouchDB with Node.js and Cradle -- Searching for a document in CouchDB with Node.js and Cradle -- Updating a document in CouchDB with Node.js and Cradle -- Deleting a document in CouchDB using Node.js and Cradle -- Using REST to enumerate CouchDB records -- Using REST to search CouchDB -- Using REST to upsert a document in CouchDB -- Using REST to delete a document in CouchDB -- Chapter 7 : Using JSON in a Type-Safe Manner -- Introduction -- How to deserialize an object using Json.NET -- How to handle date and time objects using Json.NET -- How to deserialize an object using gson for Java -- How to use TypeScript with Node.js -- How to annotate simple types using TypeScript -- How to declare interfaces using TypeScript -- How to declare classes with interfaces using TypeScript -- Using json2ts to generate TypeScript interfaces from your JSON -- Chapter 8 : Using JSON for Binary Data Transfer -- Introduction -- Encoding binary data as a base64 string using Node.js -- Decoding binary data from a base64 string using Node.js -- Encoding and decoding binary data as a base64 string using JavaScript in the browser -- Encoding data as BSON using Json.NET -- Decoding data from BSON using Json.NET -- Using a DataView to access an ArrayBuffer
- Cover -- Copyright -- Credits -- About the Author -- About the Reviewers -- www.PacktPub.com -- Table of Contents -- Preface -- Chapter 1: Reading and Writing JSON on the Client -- Introduction -- Reading and writing JSON in JavaScript -- Reading and writing JSON in C++ -- Reading and writing JSON in C# -- Reading and writing JSON in Java -- Reading and writing JSON in Perl -- Reading and writing JSON in Python -- Chapter 2 : Reading and Writing JSON on the Server -- Reading and writing JSON in Clojure -- Reading and writing JSON in F# -- Reading and writing JSON with Node.js -- Reading and writing JSON in PHP -- Reading and writing JSON in Ruby -- Chapter 3 : Using JSON in Simple AJAX Applications -- Introduction -- Creating an XMLHttpRequest object -- Making an asynchronous request for data -- Sending JSON to your web server -- Accepting JSON using Node.js -- Getting the progress of an asynchronous request -- Parsing the returned JSON -- Issuing a web service request using Node.js -- Chapter 4 : Using JSON in AJAX Applications with jQuery and AngularJS -- Introduction -- Adding a dependency to jQuery to your web page -- Requesting JSON content using jQuery -- Sending JSON to your web server using jQuery -- Getting the progress of a request using jQuery -- Parsing the returned JSON using jQuery -- Adding a dependency to AngularJS to your web page -- Requesting JSON content using AngularJS -- Sending JSON to your web server using AngularJS -- Getting the progress of a request using AngularJS -- Parsing the returned JSON using AngularJS -- Chapter 5 : Using JSON with MongoDB -- Introduction -- Setting up MongoDB -- Installing the MongoDB database driver for Node.js -- Installing the express module for Node.js -- Connecting to a MongoDB database using Node.js -- Creating a document in MongoDB using Node.js
- The JavaScript JSON Cookbook: Over 80 recipes to make the most of JSON in your desktop, server, web, and mobile applications

