Class Json
Encapsulates json functions to provide indentation as conversion from json to
plain php arrays.
Methods summary
public static
string
|
#
Encode( array $data )
Equivalent of json_encode function but output pretty printed json format to
make it possible to edit the output manually.
Equivalent of json_encode function but output pretty printed json format to
make it possible to edit the output manually.
Parameters
Returns
string
|
public static
array
|
#
Decode( string $data )
Equivalent to json_decode for json but with associative turned on. This
function retreive json objects as associative array.
Equivalent to json_decode for json but with associative turned on. This
function retreive json objects as associative array.
Parameters
- $data
string $data Json encoded data.
Returns
array
|