PacktLib: JavaScript and JSON Essentials

JavaScript and JSON Essentials

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

JavaScript Basics

Variables in JavaScript

Arrays

Objects

The Carousel application

Summary

Getting Started with JSON

The Hello World program with JSON

Datatypes in JSON

Languages that support JSON

Summary

Working with Real-time JSON

Accessing objects in JSON

Performing complex operations

Modifying JSON

Summary

AJAX Calls with JSON Data

Requirements for AJAX

Hosting JSON

Making your first AJAX call

Parsing JSON data

Summary

Cross-domain Asynchronous Requests

Making GET and POST AJAX calls with JSON data

The problem with cross-domain AJAX calls

Introduction to JSONP

Implementing JSONP

Summary

Building the Carousel Application

Setting up the application

Building the JSON file for the Carousel application

Creating the Carousel application with jQuery Cycle

Summary

Alternate Implementations of JSON

Dependency management

JSON for storing metadata

Comparisons with YAML

Summary

Debugging JSON

Using the developer tools

Validating JSON

Formatting JSON

Summary

Index