You need to sign in to do that
Don't have an account?
kabu
Escape double quote and backslash from a Json string
I am looking for code to escape double quote and backslash.
String val='my "test" \string';
after escape it should display
my "test" \string
thanks in advance.
String val='my "test" \string';
after escape it should display
my "test" \string
thanks in advance.
On adding escape character \ before special characters would resolve your issue.
String val='my \"test\" \\string';
Hope it helps you.
See the link: http://stackoverflow.com/questions/19176024/how-to-escape-special-characters-in-building-a-json-string
{"a":"123", "b":" why my code not working, what is the error's"}
a="123"
b="why my code not working, what is the error's"
I am getting error on Parsing Invalid Character