Decode JSON encoded string to PHP variable constructs
Constructor
Parameters: |
|
---|
{@link Zend_Json::TYPE_ARRAY} and {@link Zend_Json::TYPE_OBJECT} for valid values
throws InvalidArgumentException: rtype: void
Decode a JSON source string
Decodes a JSON encoded string. The value returned will be one of the following:
- integer
- float
- boolean
- null
stdClass
- array
- array of one or more of the above types
By default, decoded objects will be returned as associative arrays; to return a stdClass object instead, pass {@link Zend_Json::TYPE_OBJECT} to the $objectDecodeType parameter.
Parameters: |
|
---|
either or {@link Zend_Json::TYPE_ARRAY} or {@link Zend_Json::TYPE_OBJECT}; defaults to TYPE_ARRAY
rtype: mixed
Recursive driving routine for supported toplevel tops
Return type: | mixed |
---|
If Zend_Json_Encoder was used to encode the original object then a special attribute called __className which specifies a class name that should wrap the data contained within the encoded source.
Decodes to either an array or stdClass object, based on the value of {@link $decodeType}. If invalid $decodeType present, returns as an array.
Return type: | array|stdClass |
---|---|
Throws : | RuntimeException |
Return type: | array |
---|---|
Throws : | RuntimeException |
Retrieves the next token from the source stream
Return type: | int Token constant value specified in class definition |
---|---|
Throws : | RuntimeException |
Decode Unicode Characters from u0000 ASCII syntax.
This algorithm was originally developed for the Solar Framework by Paul M. Jones
Parameters: | string – |
---|---|
Return type: | string |
Convert a string from one UTF-16 char to one UTF-8 char.
Normally should be handled by mb_convert_encoding, but provides a slower PHP-only method for installations that lack the multibyte string extension.
This method is from the Solar Framework by Paul M. Jones
Parameters: | string – UTF-16 character |
---|---|
Return type: | string UTF-8 character |
Parse tokens used to decode the JSON object. These are not for public consumption, they are just used internally to the class.