发送到服务器时删除Json中的特殊字符

时间:2013-03-11 10:59:19

标签: android json

嗨,计算后得到json如下

{"xxxx":"{\"value\":\"http:\\\/\\\/blaze.mobiclay.net\\\/action\\\/qzproject\\\/feed\\\/20111015\\\/getfeedurl?feedID=702\",\"type\":\"RSS\"}","yyyy":"{\"value\":\"chg\",\"type\":\"String\"}","zzzz (mins)":"{\"value\":\"3\",\"type\":\"String\"}",

但是当我需要将它发送到服务器时我需要它如下

{"xxxx":{"type":"RSS","value":""},"zzzz (mins)":{"type":"String","value":""},"yyyy":{"type":"String","value":""}}

1 个答案:

答案 0 :(得分:1)

我认为这是你在寻找:-) encode

decode