Class Json
JSON encoder and decoder.
Methods summary
final public
|
#
__construct( )
Static class - cannot be instantiated.
Static class - cannot be instantiated.
|
public static
string
|
#
encode( mixed $value, integer $options = 0 )
Returns the JSON representation of a value.
Returns the JSON representation of a value.
Parameters
- $value
mixed
- $options
integer accepts Json::PRETTY
Returns
string
|
public static
mixed
|
#
decode( string $json, integer $options = 0 )
Decodes a JSON string.
Parameters
- $json
string
- $options
integer accepts Json::FORCE_ARRAY
Returns
mixed
|