Chapter 10. Zend_Json

Table of Contents

10.1. Introduction
10.2. Basic Usage
10.3. JSON Objects

10.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 for data interchange between JavaScript and other languages. Since JSON can be directly evaluated by JavaScript, it is a more efficient and lightweight format than XML for exchanging data with JavaScript clients.