Avatar

Community Advisor

Hi all,

a web service is returning JSON response like this example:  {"name" : "Milan", "tool": "ACM", "reason": "This is a " test"}

You may see the extra double quotes (marked red above) which are causing error. This JSON is properly escaped when is send from server (with one backslash) but after is received in ACM it is lost, therefore I need another one for JavaScript.

I tried str.replace function but this escape all double quotes which is not suitable for me. Also, I tried some things with JSON.stringify() and JSON.parse() but without success.

Do you have any idea how to resolve this?

Thanks,

Milan