Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

Support Article

Generated JSON fails to escape special characters

SA-74541

Summary



When a property contains double quotes (") as part of its value, the generated JSON object fails to escape the special character. This creates incorrect JSON objects during a REST Request. This occurs no matter where the quotes are in the string.


Error Messages



Not Applicable


Steps to Reproduce

  1. Create a REST Connector that obtains data from an onscreen Text field element.
  2. In the Text field, add a double quote (") and submit the request. The data is sent without the quote escaped.


Root Cause



A defect in Pegasystems’ code or rules.


Resolution



Perform the following local-change:

Add the following Dynamic System Setting (DSS):

DSS name: json/escapeSpecialCharacters
ruleset: Pega-IntSvcs
Value: True

Published May 14, 2019 - Updated October 8, 2020

Was this useful?

50% found this useful

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Pega GenAI Athena

Let’s get started! 
Ask me a question or choose a helpful suggestion to start chatting. Keep in mind that I’m always learning, so feel free to give me feedback too!
Remember to avoid sharing personal or sensitive information in your questions, or rely solely on my answers for important decisions.
By chatting with me, you agree to our terms and privacy policy.

Did you find this content helpful?

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice