json问题

浏览:432 发布日期:2017/04/24 分类:ThinkPHP5专区
$params = $this->request->post('params');
var_dump($params);echo "<hr/>";
$p    = json_decode($params,true);
var_dump($p);exit;
奇怪,结果是string(203) "{"columns":{"content":{"name":"content","type":"String"},"id":{"name":"id","type":"String"}}}"
---------------------------
NULL
为什么是null,哪不对么?
最佳答案
评论( 相关
后面还有条评论,点击查看>>