Programmer's Reference Guide

25.2. Basic Usage

Usage of Zend_Json involves using the two public static methods available: Zend_Json::encode() and Zend_Json::decode().


// Retrieve a value:
$phpNative = Zend_Json::decode($encodedValue);

// Encode it to return to the client:
$json = Zend_Json::encode($phpNative);

Search the Manual

Translation Status Reports

View the current status report of Zend Framework manual translations.