开发者

JSON array is unable to transmit a String having backslash

开发者 https://www.devze.com 2023-02-14 01:44 出处:网络
i am tranmitting a message via JSONArray but ge开发者_如何学Gotting reponse code 500. reason is that My Message String contains a character \'\\\'.

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

精彩评论

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