JsonSerializable — JSON 序列化接口
JsonSerializable::jsonSerialize — 指定需要被序列化成 JSON 的数据
JSON 函数
json_decode — 对 JSON 格式的字符串进行编码
json_encode — 对变量进行 JSON 编码
json_last_error_msg — Returns the error string of the last json_encode() or json_decode() call
json_last_error — 返回最后发生的错误