javascript - 关于jquery生成的JSON在php中转数组出现的问题

WBOY
Release: 2016-06-06 20:23:22
Original
1313 people have browsed it

<code>{"7":{"Num":"12"},"8":{"Num":"2"},"9":{"Num":"2"},"10":{"Num":"33"}}

上面的json是jquery.stringify转出来的

在php中怎么转成数据呢?

我用了json_decode,结果var_dump出来是NULL。

哪里的问题呢?</code>
Copy after login
Copy after login

回复内容:

<code>{"7":{"Num":"12"},"8":{"Num":"2"},"9":{"Num":"2"},"10":{"Num":"33"}}

上面的json是jquery.stringify转出来的

在php中怎么转成数据呢?

我用了json_decode,结果var_dump出来是NULL。

哪里的问题呢?</code>
Copy after login
Copy after login

你确定已经传过去了吗?你var_dump()这个post传过来的数据确定有值?

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template