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 t...