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
- Create a REST Connector that obtains data from an onscreen Text field element.
- 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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.