<?xml version="1.0" encoding="UTF-8"?>
<!-- Reviewed: no -->
<sect1 id="zend.json.basics">
    <title>Basic Usage</title>
    <para>
        Usage of <classname>Zend_Json</classname> involves using the two public static
        methods available: <classname>Zend_Json::encode()</classname> and
        <classname>Zend_Json::decode()</classname>.
    </para>
    <programlisting role="php"><![CDATA[
// Retrieve a value:
$phpNative = Zend_Json::decode($encodedValue);

// Encode it to return to the client:
$json = Zend_Json::encode($phpNative);
]]></programlisting>
</sect1>
<!--
vim:se ts=4 sw=4 et:
-->