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
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.