Method | Description | |
---|---|---|
decode ( string $string, boolean $assoc = false, integer $depth = 512, integer $options ) : mixed | call json_decode function | |
encode ( mixed $value, integer $options, integer $depth = 512 ) : string | call json_encode function | |
format ( string $json, boolean $unescapeUnicode, boolean $unescapeSlashes ) : string | 주어진 json string을 보기 편하게 정리한다. |
Method | Description | |
---|---|---|
exception ( integer $error ) : void | message make for version lower then 5.5.0 | |
lastError ( ) : void | catch last error and throw exception |
public static decode ( string $string, boolean $assoc = false, integer $depth = 512, integer $options ) : mixed | ||
$string | string | target for decoding |
$assoc | boolean | when true, object be converted to array |
$depth | integer | recursion depth |
$options | integer | decode option, just support 'JSON_BIGINT_AS_STRING' |
return | mixed |