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

Malformed JSON response in REST Service

SA-21111

Summary



If the Boolean type properties doesn't have any value and mapped in the JSON response, then the attribute value for corresponding property is empty (expected value as false by default)

Sample Response: {"TestDouble":0.0,"TestBoolean": , "TestDecimal":0}

Steps to Reproduce



1) Create a REST service with response content type - Application/json
2) In JSON response, map properties of TrueFalse type without mapping.

Root Cause



Currently, REST service/connect outbound JSON mapping is faulty for a scalar property that exists in Clipboard with null/empty value. In such case, JSON key is added without it's corresponding value and hence leading to an invalid JSON.

Resolution



Apply HFIX-26670.

Published March 18, 2016 - Updated October 8, 2020

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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
Contact us