Class Zend_Json

Description

Class for encoding to and decoding from JSON.

  • license: New BSD License
  • copyright: Copyright (c) 2006 Zend Technologies USA Inc. (http://www.zend.com)

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


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

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.
static method encode (line 66)

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 35)

How objects should be encoded -- arrays or as StdClass

TYPE_OBJECT = 1 (line 36)

Documentation generated on Sun, 29 Oct 2006 21:27:21 -0600 by phpDocumentor 1.3.0RC6