Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases now! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
The JavaScript JSON Cookbook

You're reading from   The JavaScript JSON Cookbook Over 80 recipes to make the most of JSON in your desktop, server, web, and mobile applications

Arrow left icon
Product type Paperback
Published in Jun 2015
Publisher
ISBN-13 9781785286902
Length 192 pages
Edition 1st Edition
Languages
Arrow right icon
Toc

Table of Contents (12) Chapters Close

Preface 1. Reading and Writing JSON on the Client FREE CHAPTER 2. Reading and Writing JSON on the Server 3. Using JSON in Simple AJAX Applications 4. Using JSON in AJAX Applications with jQuery and AngularJS 5. Using JSON with MongoDB 6. Using JSON with CouchDB 7. Using JSON in a Type-safe Manner 8. Using JSON for Binary Data Transfer 9. Querying JSON with JSONPath and LINQ 10. JSON on Mobile Platforms Index

What you need for this book

Unlike many other technical books, this one focuses on a wide variety of supporting technologies in its examples. I don't expect that you'll have experience or the tools to try every example in this book, especially right away. However, it's helpful to have a few things set out.

You should have some programming experience, preferably in JavaScript. Unless a recipe is targeted at a specific programming language such as C#, the recipes in this book are written in JavaScript. I do this for two reasons. Firstly because the "J" in JSON stands for JavaScript (even though it's widely applicable to other languages), and, in this day and age, every programmer should have at least a nodding familiarity of JavaScript.

As far as software environments go, to begin with, you should have access to a good web browser such as Chrome or a recent version of Safari, Firefox, or Internet Explorer. You can use the JavaScript runtime in any of these browsers to experiment with JSON and get started.

Secondly, a lot of the client-server examples feature Node.js. I picked Node.js for server-side example programming because it's also JavaScript, meaning that you don't have to jump through different language syntaxes as you move between the client and server. Node.js runs well on Windows, Mac OS X, and Linux, too, so you shouldn't have a problem setting it up.

If you're interested in using JSON with databases, CouchDB or MongoDB are your best choices and I discuss both of them in this book. Which one you choose is really a matter of your domain and personal preference. I've been using MongoDB for 5 years on various projects but have recently taken a liking to some of CouchDB's features and its integrated support for RESTful services.

Finally, if you're a Microsoft developer, you may want to take special note of the C# examples that use Newtonsoft's Json.NET throughout this book. Json.NET is what JSON in C# ought to be, and it's definitely worth your attention.

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime