Encode PHP constructs to JSON
Located in /library/Zend/Json/Encoder.php (line 34)
Constructor
Use the JSON encoding scheme for the value specified
Encodes the given $className into the class2 model of encoding PHP classes into JavaScript class2 classes.
NOTE: Currently only public methods and variables are proxied onto the client machine
Encode several classes at once
Returns JSON encoded classes, using encodeClass().
JSON encode an array value
Recursively encodes each value of an array and returns a JSON encoded array string.
JSON encode a basic data type (string, number, boolean, null)
If value type is not a string, number, boolean, or null, the string 'NULL' is returned.
Encode an object to JSON by encoding each of the public properties
A special property is added to the JSON object called '__className' that contains the name of the class of $value. This is used to decode the object on the client into a specific class.
JSON encode a string value by escaping characters as necessary
Recursive driver which determines the type of value to be encoded
and then dispatches to the appropriate method. $values are either
Determine if an object has been serialized already
Documentation generated on Wed, 08 Mar 2006 04:51:44 -0800 by phpDocumentor 1.3.0RC4