encode_json
$json_text = encode_json $perl_scalar
Converts the given Perl data structure to a UTF-8 encoded, binary string.
This function call is functionally identical to:
$json_text = JSON->new->utf8->encode($perl_scalar)
转换给定的perl数据结构到一个UTF-8编码的,2进制的字符串。
encode_json 产生一个UTF-8编码的2进制字符
[encode_json
$json_text = encode_json $