开发者

JSON array is unable to transmit a String having backslash

i am tranmitting a message via JSONArray but ge开发者_如何学Gotting reponse code 500. reason is that My Message String contains a character '\'.

String s="apples $54\KG"


Backslash is an escape character. Use \\ instead. There is a JSON.stringify function too that might help.


back slash charahter is not supproted by GSM.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜