You need to sign in to do that
Don't have an account?
Ab
Hello,
I have a code pice like below
In the putput of JSON, i have like this
But My Expectations is
How can i do it ?
Always have \ characters before double quote
Hello,
I have a code pice like below
If(String.isNotBlank(StringFieldNAME)){ If(StringFieldNAME.Contains(';')){ StringFieldNAME = '["'+StringFieldNAME.replaceAll(';','", "')+'"]'; } }
In the putput of JSON, i have like this
"[\"J\", \"L\", \"M\", \"N\"]"
But My Expectations is
"["J", "L", "M", "N"]"
How can i do it ?
If that does not help, I suggest removing all special characters
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep
All Answers
If that does not help, I suggest removing all special characters
If you find this information helpful, please mark this answer as Best. It may help others in the community. Thank You!
Anudeep
Unrecognized symbol '"', which is not a valid Apex identifier.