user1340801
user1340801

Reputation: 443

Removing special characters in Json while sending to server

hi after computing im getting json as below

{"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\"}",

but i need it as below when i need to send it to server

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

Upvotes: 0

Views: 907

Answers (1)

Tamilselvan Kalimuthu
Tamilselvan Kalimuthu

Reputation: 1532

I think this is you are looking for:-) encode

and decode

Upvotes: 1

Related Questions