IBM Support

API Connect v5 compatible Gateway does not support parsing escaped characters within JSON Strings

Troubleshooting


Problem

Attempting to parse a JSON message that contains an escaped character will throw an exception when using the V5 compatible Gateway.

 
For example, suppose you have a JSON request that escaped the double quote character:
{
  “Message”: “He said, \”Hello, World!\” and smiled.”
}

Symptom

After attempting to parse, the DataPower logs will show an error like:
"Unexpected string in JSON at position xxx"
For example:
{"errorMessage":"Unexpected string in JSON at position 1031","errorCode":"0x8580005c","errorDescription":"GatewayScript console log message.","errorSuggestion":"GatewayScript console log message. Refer to the message for more information."}

Document Location

Worldwide

[{"Type":"MASTER","Line of Business":{"code":"LOB77","label":"Automation Platform"},"Business Unit":{"code":"BU048","label":"IBM Software"},"Product":{"code":"SSMNED","label":"IBM API Connect"},"ARM Category":[{"code":"a8m50000000CeAKAA0","label":"API Connect-\u003EDeveloper (DV)-\u003EGatewayScript"}],"ARM Case Number":"TS016863529","Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"All Versions"}]

Log InLog in to view more of this document

This document has the abstract of a technical article that is available to authorized users once you have logged on. Please use Log in button above to access the full document. After log in, if you do not have the right authorization for this document, there will be instructions on what to do next.

Document Information

Modified date:
10 October 2024

UID

ibm17168672