## 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
TYPE_ARRAY = 0
TYPE_OBJECT = 1
Method Summary
static mixed decode (string $encodedValue, [int $objectDecodeType = null])
static string encode (mixed $valueToEncode)
Methods
static decode (line 47)

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

- access: public

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

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 Tue, 11 Jul 2006 12:17:39 -0500 by phpDocumentor 1.3.0RC6