Class CJSON
CJSON converts PHP data to and from JSON format.
Package: system\web\helpers
Copyright: 2005 Michal Migurski
License: http://www.opensource.org/licenses/bsd-license.php
Author: Michal Migurski <mike-json@teczno.com>
Author: Matt Knapp <mdknapp[at]gmail[dot]com>
Author: Brett Stimmerman <brettstimmerman[at]gmail[dot]com>
Since: 1.0
Located at x2engine/framework/web/helpers/CJSON.php
Copyright: 2005 Michal Migurski
License: http://www.opensource.org/licenses/bsd-license.php
Author: Michal Migurski <mike-json@teczno.com>
Author: Matt Knapp <mdknapp[at]gmail[dot]com>
Author: Brett Stimmerman <brettstimmerman[at]gmail[dot]com>
Since: 1.0
Located at x2engine/framework/web/helpers/CJSON.php
public static
string
|
|
protected static
string
|
|
protected static
string
|
#
reduceString( string $str )
reduce a string by removing leading and trailing comments and whitespace |
public static
mixed
|
|
protected static
string
|
#
utf8ToUnicode( string & $str )
This function returns any UTF-8 encoded text as a list of Unicode values: |
protected static
string
|
#
unicodeToUTF8( string & $str )
This function converts a Unicode array back to its UTF-8 representation |
protected static
string
|
|
protected static
string
|
integer |
JSON_SLICE
|
1 |
#
Marker constant for JSON::decode(), used to flag stack state |
integer |
JSON_IN_STR
|
2 |
#
Marker constant for JSON::decode(), used to flag stack state |
integer |
JSON_IN_ARR
|
4 |
#
Marker constant for JSON::decode(), used to flag stack state |
integer |
JSON_IN_OBJ
|
8 |
#
Marker constant for JSON::decode(), used to flag stack state |
integer |
JSON_IN_CMT
|
16 |
#
Marker constant for JSON::decode(), used to flag stack state |