string json_encode ( mixed $value [, int $options = 0 ] )
Returns a string containing the JSON representation of value.
Returns a JSON encoded string on success.