php 数组转 json 有两种新方法:jsonserializable 接口: 允许对象定义自己的 json 表示形式。jsonencodereplaceflags: 控制特殊字符的处理,如 json_unescaped_unicode 不转义 unicode 转义序列。 解析 PHP 数组转