Public Member Functions | |
| Services_JSON ($use=0) | |
| constructs a new JSON instance | |
| utf162utf8 ($utf16) | |
| convert a string from one UTF-16 char to one UTF-8 char | |
| utf82utf16 ($utf8) | |
| convert a string from one UTF-8 char to one UTF-16 char | |
| encode ($var) | |
| encodes an arbitrary variable into JSON format | |
| name_value ($name, $value) | |
| array-walking function for use in generating JSON-formatted name-value pairs | |
| reduce_string ($str) | |
| reduce a string by removing leading and trailing comments and whitespace | |
| decode ($str) | |
| decodes a JSON string into appropriate variable | |
Public Attributes | |
| return | $utf8 |
| $arr = array() | |
| $chrs = substr($str, 1, -1) | |
| $substr_chrs_c_2 = substr($chrs, $c, 2) | |
| $val = $this->decode($parts[2]) | |
| $c | |
|
|
constructs a new JSON instance
Definition at line 128 of file json-lib.inc.php. |
|
|
decodes a JSON string into appropriate variable
Definition at line 475 of file json-lib.inc.php. |
|
|
encodes an arbitrary variable into JSON format
Definition at line 232 of file json-lib.inc.php. |
|
||||||||||||
|
array-walking function for use in generating JSON-formatted name-value pairs
Definition at line 426 of file json-lib.inc.php. |
|
|
reduce a string by removing leading and trailing comments and whitespace
Definition at line 444 of file json-lib.inc.php. |
|
|
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 multibye string extension.
Definition at line 144 of file json-lib.inc.php. |
|
|
convert a string from one UTF-8 char to one UTF-16 char Normally should be handled by mb_convert_encoding, but provides a slower PHP-only method for installations that lack the multibye string extension.
Definition at line 188 of file json-lib.inc.php. |
|
|
Definition at line 614 of file json-lib.inc.php. |
|
|
Definition at line 760 of file json-lib.inc.php. |
|
|
Definition at line 635 of file json-lib.inc.php. |
|
|
Definition at line 657 of file json-lib.inc.php. |
|
|
Definition at line 605 of file json-lib.inc.php. |
|
|
Definition at line 683 of file json-lib.inc.php. |
1.3.9.1