json_encode

Example

 string json_encode ( mixed $value [, int $options = 0 ] ) 

Description

Returns a string containing the JSON representation of value.

Return Values

Returns a JSON encoded string on success.