About the specifications of the JSON escape character

book

Article ID: 101476

calendar_today

Updated On:

Products

CA API Gateway (Layer 7) SA94 to API SECURITY STARTER PACK-7 CA Rapid App Security MOBILE API GATEWAY CA Mobile - API Gateway CA API Gateway

Issue/Introduction



A control character is removed by Evaluate JSON Path Expression assertion when the input JSON object is containing the mixture of control character (0x01) and escaped character (\") as value string. Is it by design?

Environment

Release:
Component: APIGTW

Resolution

Use of control characters (U+0000 through U+001F) without escape is out of the specifications of JSON format (RFC8259). Either removing or preserving control characters in the output string should not be assumed.
Please escape the control characters in the input JSON object before passing to Evaluate JSON Path Expression assertion.