Chapter 7. Zend_Json

Table of Contents

7.1. Introduction
7.2. Basic Usage
7.3. JSON Objects

7.1. Introduction

Zend_Json provides convenience methods for serializing native PHP to JSON and decoding JSON to native PHP. For more information on JSON, visit the JSON project site.

JSON, JavaScript Object Notation, can be used as a lightweight data interchange between javascript and other languages. Since JSON can be directly evaluated in Javascript, it is an ideal format for using with Web 2.0 interfaces; it is a simpler alternative than using XML for AJAX interfaces.