Source for file JSON.php
Documentation is available at JSON.php
require_once 'HTML/AJAX/JSON.php';
* @author Joshua Eichorn <josh@bluga.net>
* @copyright 2005 Joshua Eichorn
* @license http://www.opensource.org/licenses/lgpl-license.php LGPL
* @version Release: 0.5.7
* @link http://pear.php.net/package/PackageName
// {{{ class HTMLA_AJAX_Serialize_JSON
// {{{ variables-properties
* use json php extension http://www.aurore.net/projects/php-json/
* use loose typing to decode js objects into php associative arrays
$this->_jsonext = $this->_detect ();
* This function serializes and input passed to it.
* @param string $input The input to serialize.
* @return string $input The serialized input.
return $this->_json->encode ($input);
* this function unserializes the input passed to it.
* @param string $input The input to unserialize
* @return string $input The unserialized input.
return $this->_json->decode ($input);
* detects the loaded extension
/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */
Documentation generated on Mon, 11 Mar 2019 15:59:25 -0400 by phpDocumentor 1.4.4. PEAR Logo Copyright © PHP Group 2004.
|