I have a submit form where there are multiple textfields. Whenever user enters text like "Hi, my name is "xyz"", the service does not accept this JSON due to double quotes in my string. Please suggest ways to escape this character. I have tried using encode and decode JSON, replaceOccurrencesOf methods, but none work.
replaceOccurrencesOf()