Class Zend_Json

Description

Class for encoding to and decoding from JSON.

Located in /Zend/Json.php (line 28)


	
			
Class Constant Summary
Method Summary
 mixed decode (string $encodedValue, [int $objectDecodeType = null])
 string encode (mixed $valueToEncode)
Methods
decode (line 45)

Decodes the given $encodedValue string which is encoded in the JSON format

  • access: public
  • static:
mixed decode (string $encodedValue, [int $objectDecodeType = null])
  • string $encodedValue: Encoded in JSON format
  • int $objectDecodeType: Optional; flag indicating how to decode objects. See ZJsonDecoder::decode() for details.
encode (line 64)

Encode the mixed $valueToEncode into the JSON format

NOTE: Object should not contain cycles; the JSON format does not allow object reference.

NOTE: Only public variables will be encoded

  • return: JSON encoded object
  • access: public
  • static:
string encode (mixed $valueToEncode)
  • mixed $valueToEncode
Class Constants
TYPE_ARRAY = 0 (line 33)

How objects should be encoded -- arrays or as StdClass

TYPE_OBJECT = 1 (line 34)

Documentation generated on Tue, 18 Apr 2006 11:55:16 -0700 by phpDocumentor 1.3.0RC3