参考网址: https://segmentfault.com/a/1190000006154011 返回失败时,通过 json_last_error可以获取其json解析失败的原因。 转载于:https://www.cnblogs.com/hzijone/p/6289559.html