Home  >  Article  >  Backend Development  >  php json解析有关问题

php json解析有关问题

WBOY
WBOYOriginal
2016-06-13 13:12:10774browse

php json解析问题

PHP code
<!--

Code highlighting produced by Actipro CodeHighlighter (freeware)
http://www.CodeHighlighter.com/

-->{"FUID":"1344570006238357","photourl":"http://xxx.xxxx.com/xxxx/1344570010816293.png","NickName":"123456","Content":"<img  src="../Expression/ali/ali11.gif" class="editorimg" alt=" php json解析有关问题 " ><img  src="../Expression/ali/ali24.gif" class="editorimg" alt=" php json解析有关问题 " ><img  src="../Expression/ali/ali25.gif" class="editorimg" alt=" php json解析有关问题 " ><img  src="../Expression/ali/ali42.gif" class="editorimg" alt=" php json解析有关问题 " >","rtime":"2012-08-19 16:16:07"}

转换成json时,是没有问题的,但是转换回来就会出错,只要里面出现Content这种内容就转换不回来?

------解决方案--------------------
你的这个 json 是从哪里来的?
你对这个 json 串做过什么处理?
节点 Content 的值中含有双引号,为什么没有转义?
Statement:
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