助力软件开发企业降本增效 PHP / java源码系统,只需一次付费,代码终身使用! 广告
本扩展实现了[» JavaScript对象符号(JSON)](http://www.json.org/)数据转换格式。 PHP 5 中的解码分析器基于 Douglas Crockford 的 JSON\_checker。 PHP 7 中是改进的全新解析器,专门为 PHP 订制,软件许可证为 PHP license。 自 PHP 5.2.0 起,JSON 扩展默认内置并编译进了 PHP * [预定义常量](https://www.php.net/manual/zh/json.constants.php) * [JsonSerializable](https://www.php.net/manual/zh/class.jsonserializable.php)— JSON 序列化接口 * [JsonSerializable::jsonSerialize](https://www.php.net/manual/zh/jsonserializable.jsonserialize.php)— 指定需要被序列化成 JSON 的数据 * [JSON 函数](https://www.php.net/manual/zh/ref.json.php) * [json\_decode](https://www.php.net/manual/zh/function.json-decode.php)— 对 JSON 格式的字符串进行解码 * [json\_encode](https://www.php.net/manual/zh/function.json-encode.php)— 对变量进行 JSON 编码 * [json\_last\_error\_msg](https://www.php.net/manual/zh/function.json-last-error-msg.php)— Returns the error string of the last json\_encode() or json\_decode() call * [json\_last\_error](https://www.php.net/manual/zh/function.json-last-error.php)— 返回最后发生的错误