12
05月
2015
今天碰到个问题,控制器接收到的json串不能用json_decode解析,
后来发现要用函数重新编码
$hidfreightsett=html_entity_decode($_POST['hidFreightSettings']);
$s= json_decode($hidfreightsett,true);
这样就好了,记录一下。
特殊说明,本文版权归 ning个人博客 所有带原创标签请勿转载,转载请注明出处.
本文标题: json_decode解析失败