各位 帮我看看这个JSON 怎么php会解析不出来哦

挨踢职业人 发布于 2012/07/31 13:46
阅读 1K+
收藏 0
{"rp_result":{"good":{"content":"<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td height=\"137\" width=\"273\" align=\"middle\">\r\n				<img alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g2/M01/04/12/rBEGEE-osM0IAAAAAAA6Gxlg1LQAAA5DgElVDIAADoz003.png\" /> \r\n			</td>\r\n			<td width=\"577\">\r\n				<div class=\"pcp_title\">\r\n				</div>\r\n				<div class=\"pcp_zhengzi\">\r\n					Coach于1941年成立,当时为一所家族经营的工作坊。于美国曼克顿市的阁楼里,六位工匠以世代相传的手工技术制作了一系列皮革产品。自此,Coach的独特手工工艺和高质量的制作被那些颇为讲究品质的顾客青睐。随着业务的不断发展,Coach仍一直保持着上乘的用料和工艺的高质量水准,这一贯穿始终的品牌宗旨,是Coach成功的基石。而Coach所特有的美式设计,精湛的皮革制造技术以及周到细致的服务,也成为受顾客欢迎的品牌的特色。\r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<style>.bigapic{ width:750px; height:auto;}</style>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td valign=\"center\" align=\"middle\">\r\n				<div class=\"bigapic\">\r\n					<img border=\"0\" alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g1/M04/04/12/rBEGDU-osLsIAAAAAACDFsrIb_wAAA5CwIwGH8AAIMu452.jpg\" /> \r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td width=\"350\" align=\"middle\">\r\n				<img alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g4/M00/04/12/rBEGFU-osZYIAAAAAAPEmxM8aogAAA5DQIpcTQAA8Sz804.png\" /> \r\n			</td>\r\n			<td width=\"350\" align=\"middle\">\r\n				<img alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g3/M02/04/12/rBEGFE-osZEIAAAAAAE06dS9YucAAA5CQMG9KMAATUB489.png\" /> \r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<style type=\"text/css\"><!--.pcp_lwa_title {	PADDING-RIGHT: 7px; PADDING-LEFT: 7px; FONT-WEIGHT: bold; text-align:left; FONT-SIZE: 15px; PADDING-BOTTOM: 7px; COLOR: #000; PADDING-TOP: 7px; FONT-FAMILY:Arial, Helvetica, sans-serif}.pcp_lwa_zhengzi {	PADDING-RIGHT: 15px;	PADDING-LEFT: 15px;	FONT-SIZE: 14px;	PADDING-BOTTOM: 15px;	LINE-HEIGHT: 1.5em;	PADDING-TOP: 15px;	FONT-FAMILY: Arial, Helvetica, sans-serif}--></style>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td width=\"350\">\r\n				<div class=\"pcp_lwa_title\">\r\n				</div>\r\n				<div class=\"pcp_lwa_zhengzi\">\r\n					品牌:COACH 蔻驰<br />\r\n产地:中国大陆<br />\r\n款式:男款<br />\r\n				</div>\r\n			</td>\r\n			<td width=\"350\">\r\n				<div class=\"pcp_lwa_title\">\r\n				</div>\r\n				<div class=\"pcp_lwa_zhengzi\">\r\n					产品颜色:棕色<br />\r\n产品材质:PVC<br />\r\n产品结构:前部2个多功能袋,1个拉链袋,背部1个按扣贴袋,按扣开合,内部1个拉链暗袋,2个多功能袋 ,1个手机袋\r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td width=\"350\" align=\"middle\">\r\n				<img alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g2/M01/04/12/rBEGEU-osZcIAAAAAANRNW2zEDEAAA5DgJ3iHIAA1FN454.png\" /> \r\n			</td>\r\n			<td width=\"350\" align=\"middle\">\r\n				<img alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g3/M02/04/12/rBEGE0-osZ0IAAAAAAKvYBufBSsAAA5CQMmGn0AAq94378.png\" /> \r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<style>.bigapic{ width:750px; height:auto;}</style>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td valign=\"center\" align=\"middle\">\r\n				<div class=\"bigapic\">\r\n					<img border=\"0\" alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g3/M02/04/12/rBEGFE-osbIIAAAAAACH0OtJckIAAA5CQNkTHUAAIfo680.jpg\" /> \r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<style>.bigapic{ width:750px; height:auto;}</style>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td valign=\"center\" align=\"middle\">\r\n				<div class=\"bigapic\">\r\n					<img border=\"0\" alt=\"\" src=\"http://img30.360buyimg.com/erpWareDetail/g2/M01/04/12/rBEGEk-osYoIAAAAAAMQECAHBsUAAA5DgJ9e8cAAxAo083.png\" /> \r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>\r\n<style type=\"text/css\"><!--.pcp_title {	PADDING-RIGHT: 7px;	PADDING-LEFT: 7px;	FONT-WEIGHT: bold;	FONT-SIZE: 15px;	PADDING-BOTTOM: 7px;	COLOR: #000;	PADDING-TOP: 7px;	FONT-FAMILY:Arial, Helvetica, sans-serif}.pcp_zhengzi {PADDING-RIGHT: 15px; PADDING-LEFT: 7px; FONT-SIZE: 14px; PADDING-BOTTOM: 15px; LINE-HEIGHT: 1.5em;PADDING-TOP: 15px; FONT-FAMILY: Arial, Helvetica, sans-serif}--></style>\r\n<table class=\"ke-zeroborder\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\" width=\"750\" align=\"center\">\r\n	<tbody>\r\n		<tr>\r\n			<td width=\"442\" align=\"middle\">\r\n				<div class=\"pcp_title\">\r\n					尺寸:长29cm,高度26cm,厚度10cm,肩带长43cm可调节 <br />\r\n				</div>\r\n			</td>\r\n		</tr>\r\n		<tr>\r\n			<td>\r\n				<div class=\"pcp_zhengzi\">\r\n					温馨提示:由于测量手法不同,误差1cm-3cm属正常范围\r\n				</div>\r\n			</td>\r\n		</tr>\r\n	</tbody>\r\n</table>","productName":"Coach蔻驰 卡其色经典双C提花图案牛皮男士信使包 70590","showPicture":{"345*345":["http://pic4.secoo.com/345×345/img201268164356359.jpg","http://pic4.secoo.com/345×345/img201268164413500.jpg","http://pic4.secoo.com/345×345/img201268164429765.jpg","http://pic4.secoo.com/345×345/img201268164446812.jpg"],"60*60":["http://pic4.secoo.com/60×60/img201268164356359.jpg","http://pic4.secoo.com/60×60/img201268164413500.jpg","http://pic4.secoo.com/60×60/img201268164429765.jpg","http://pic4.secoo.com/60×60/img201268164446812.jpg"],"proto":["http://pic4.secoo.com/Form/img201268164356359.jpg","http://pic4.secoo.com/Form/img201268164413500.jpg","http://pic4.secoo.com/Form/img201268164429765.jpg","http://pic4.secoo.com/Form/img201268164446812.jpg"]},"sourceType":1},"recode":0}}
自己java 可以对应的解析哦

加载中
0
leo108
leo108
把里面的tab制表符删掉或者替换成空格
挨踢职业人
挨踢职业人
用这种解决了,谢了
0
苦逼程序员
苦逼程序员

你可以在线json格式化一下,看看有没有什么问题。

http://www.bejson.com/go.html?u=http://www.bejson.com/

0
x
xpress
不知道你是用php的哪个函数解析的,如果用json_decode的话,这个串应该是utf8编码的才行, 可以使用json_last_error,看看错误代码。你这个我看了一下,是语法错误。
x
xpress
回复 @IT纯 : 你可以问一下他啊,另外,你把这个串用utf8编码一下,试试。
挨踢职业人
挨踢职业人
这块是我java 给php 调用,他解不出来 ,不知对方是用的啥
0
JAB
JAB
JSON编码不规范
挨踢职业人
挨踢职业人
具体哪里呢?
返回顶部
顶部