PHP json格式中有"问题

出现这个问题是因为有”这个双引号,解决方法:

$json_str = "{"platform":"lazada","index_type":"902","select_user_id":"0","userid":"11078","username":"\\u9f9a\\u4fe1\\u7cbe","userjobtype":"2","status_attr":"ALL","group_id":0,"handle_id":0,"page":1,"page_size":100,"search_key":"keyword","search_value":"","account":[],"salesman":[],"fast_site":"ALL","site":[],"price_rules":[],"status_isuse":"ALL","infringement":[],"category_one":[],"category_two":[],"category_three":[],"sale_id":"sales_1days","sale_start":"","sale_end":"","profit_rate_id":"profit_rate_1days","profit_rate_start":"","profit_rate_end":"","status":0,"price":"price","price_start":"","price_end":"","stock":"stock_usable","stock_start":"","stock_end":"","time_type":"create_time","time_start":"2022-01-07 00:00:00","time_end":"2022-04-07 23:59:59","status_special":"ALL","sorting_key":"updated_time","sorting_value":"DESC"}"
$arr = json_decode(htmlspecialchars_decode($json_str),true);
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值