json_encode

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

説明

Returns a string containing the JSON representation of value.

戻り値

Returns a JSON encoded string on success.