售 价:¥
温馨提示:数字商品不支持退换货,不提供源文件,不支持导出打印
为你推荐
JavaScript JSON Cookbook
Table of Contents
JavaScript JSON Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Support files, eBooks, discount offers, and more
Why Subscribe?
Free Access for Packt account holders
Preface
What this book covers
What you need for this book
Who this book is for
Sections
Getting ready
How to do it…
How it works…
There's more…
See also
Conventions
Reader feedback
Customer support
Downloading the example code
Errata
Piracy
Questions
1. Reading and Writing JSON on the Client
Introduction
Reading and writing JSON in JavaScript
Getting ready
How to do it...
How it works...
There's more...
Reading and writing JSON in C++
Getting ready
How to do it...
How it works...
See also
Reading and writing JSON in C#
Getting ready
How to do it...
How it works...
There's more...
See also
Reading and writing JSON in Java
Getting ready
How to do it...
There's more…
See also
Reading and writing JSON in Perl
How to do it...
How it works...
See also
Reading and writing JSON in Python
Getting ready
How to do it...
How it works...
See also
2. Reading and Writing JSON on the Server
Reading and writing JSON in Clojure
Getting ready
How to do it...
There's more...
Reading and writing JSON in F#
Getting ready
How to do it...
How it works...
There's more...
Reading and writing JSON with Node.js
Getting ready
How to do it...
See also
Reading and writing JSON in PHP
How to do it...
Reading and writing JSON in Ruby
Getting ready
How to do it...
See also
3. Using JSON in Simple AJAX Applications
Introduction
Setting up the server
Setting up the client page
Creating an XMLHttpRequest object
How to do it...
How it works…
See also
Making an asynchronous request for data
How to do it...
How it works…
See also
Sending JSON to your web server
How to do it...
How it works…
Accepting JSON using Node.js
How to do it...
How it works…
See also
Getting the progress of an asynchronous request
How to do it...
How it works…
There's more...
See also
Parsing the returned JSON
How to do it...
How it works…
There's more...
Issuing a web service request using Node.js
Getting ready
How to do it...
How it works…
There's more...
See also
4. Using JSON in AJAX Applications with jQuery and AngularJS
Introduction
Adding a dependency to jQuery to your web page
How to do it...
How it works…
There's more…
See also
Requesting JSON content using jQuery
How to do it...
How it works…
See also
Sending JSON to your web server using jQuery
How to do it...
How it works…
Getting the progress of a request using jQuery
How to do it...
How it works…
There's more...
Parsing the returned JSON using jQuery
How to do it...
How it works…
There's more...
Adding a dependency to AngularJS to your web page
How to do it...
How it works…
See also
Requesting JSON content using AngularJS
How to do it...
How it works…
There's more...
See also
Sending JSON to your web server using AngularJS
How to do it...
How it works…
There's more...
Getting the progress of a request using AngularJS
How to do it...
How it works…
Parsing the returned JSON using AngularJS
How to do it...
How it works…
5. Using JSON with MongoDB
Introduction
Setting up MongoDB
How to do it…
How it works…
Installing the MongoDB database driver for Node.js
How to do it…
Installing the express module for Node.js
How to do it…
How it works…
See also
Connecting to a MongoDB database using Node.js
How to do it...
How it works…
See also
Creating a document in MongoDB using Node.js
How to do it...
How it works…
There's more
See also
Searching for a document in MongoDB with Node.js
How to do it...
How it works…
There's more
See also
Updating a document in MongoDB with Node.js
How to do it...
How it works…
There's more…
See also
Deleting a document in MongoDB using Node.js
How to do it...
How it works…
See also
Using REST to search MongoDB
How to do it...
How it works…
There's more
Using REST to create a document in MongoDB
How to do it...
How it works…
Using REST to update a document in MongoDB
How to do it...
How it works…
Using REST to delete a document in MongoDB
How to do it...
How it works…
6. Using JSON with CouchDB
Introduction
Installing and setting up CouchDB and Cradle
How to do it…
How it works…
See also
Connecting to a CouchDB database using Node.js and Cradle
How to do it...
How it works…
Creating a CouchDB database using Node.js and Cradle
How to do it...
How it works…
There's more…
Creating a document in CouchDB using Node.js and Cradle
How to do it...
How it works…
Setting up a data view in CouchDB with Node.js and Cradle
How to do it...
How it works…
See also
Searching for a document in CouchDB with Node.js and Cradle
How to do it...
How it works…
There's more
See also
Updating a document in CouchDB with Node.js and Cradle
How to do it...
Deleting a document in CouchDB using Node.js and Cradle
How to do it...
There's more…
Using REST to enumerate CouchDB records
How to do it...
How it works…
See also
Using REST to search CouchDB
How to do it...
How it works…
Using REST to upsert a document in CouchDB
How to do it...
How it works…
Using REST to delete a document in CouchDB
How to do it…
How it works…
7. Using JSON in a Type-safe Manner
Introduction
How to deserialize an object using Json.NET
Getting ready
How to do it…
How it works…
There's more…
See also
How to handle date and time objects using Json.NET
How to do it…
How it works…
There's more…
See also
How to deserialize an object using gson for Java
Getting ready
How to do it…
How it works…
There's more…
See also
How to use TypeScript with Node.js
How to do it…
There's more…
See also
How to annotate simple types using TypeScript
How to do it…
How it works…
There's more…
See also
How to declare interfaces using TypeScript
How to do it…
How it works…
There's more…
See also
How to declare classes with interfaces using TypeScript
How to do it…
How it works…
See also
Using json2ts to generate TypeScript interfaces from your JSON
How to do it…
How it works…
8. Using JSON for Binary Data Transfer
Introduction
Encoding binary data as a base64 string using Node.js
How to do it…
How it works…
See also
Decoding binary data from a base64 string using Node.js
Getting ready
How to do it…
How it works…
See also
Encoding and decoding binary data as a base64 string using JavaScript in the browser
How to do it…
How it works…
See also
Encoding data as BSON using Json.NET
Getting ready
How to do it…
How it works…
See also
Decoding data from BSON using Json.NET
Getting ready
How to do it…
How it works…
There's more…
See also
Using a DataView to access an ArrayBuffer
Getting ready
How to do it…
How it works…
See also
Encoding and decoding base64 using an ArrayBuffer
How to do it…
How it works…
Compressing object-body content from a Node.js server built using the express module
Getting ready
How to do it…
How it works…
9. Querying JSON with JSONPath and LINQ
Introduction
Using the JSONPath dot-notation to query JSON documents
How to do it…
How it works…
There's more…
See also
Using JSONPath bracket-notation to query JSON documents
How to do it…
How it works…
Using JSONPath scripting to construct more complicated queries
How to do it…
How it works…
Using JSONPath in your web application
Getting ready
How to do it…
How it works…
See also
Using JSONPath in your Node.js application
Getting ready
How to do it…
How it works…
See also
Using JSONPath in your PHP application
Getting ready
How to do it…
How it works…
See also
Using JSONPath in your Python application
Getting ready
How to do it…
How it works…
See also
Using JSONPath in your Java application
Getting ready
How to do it…
How it works…
There's more…
See also
Using JSONPath with SelectToken to query for JSONPath expressions in your C# application
Getting ready
How to do it…
How it works…
See also
Using LINQ with Json.NET to query JSON in your C# application
Getting ready
How to do it…
How it works…
See also
10. JSON on Mobile Platforms
Introduction
Parsing JSON on Android
How to do it…
How it works…
There's more…
See also
Generating JSON on Android
How to do it…
How it works…
There's more…
See also
Parsing JSON on iOS in Objective-C
How to do it…
How it works…
There's more…
See also
Generating JSON on iOS in Objective-C
How to do it…
How it works…
See also
Parsing JSON on iOS using Swift
How to do it…
How it works…
Generating JSON on iOS using Swift
How to do it…
How it works…
Parsing JSON using Qt
How to do it…
How it works…
There's more…
See also
Generating JSON using Qt
How to do it…
How it works…
See also
Index
买过这本书的人还买过
读了这本书的人还在读
同类图书排行榜