Translate Activity Generates "\n" Characters Which Are Not Valid JSON Characters

(Doc ID 2306167.1)

Last updated on SEPTEMBER 26, 2017

Applies to:

SOA Suite Cloud Service - Version N/A and later
Information in this document applies to any platform.

Symptoms

On : NA version, Core SOA Product Issues

While Invoking a REST API which accepts JSON payload as an I/P. Customer used the Translate activity to convert the XML to JSON by using Nativexsd. But when they are assigning this converted JSON to a json:object/json:string variable they are getting the following result "{ \"vmr\" : { \"vmrdetails\" : " Because of which the Invoke to REST API is failing.



STEPS
-----------------------
The issue can be reproduced at will with the following steps:
1. Convert an XML Payload to JSON and invoke the REST service

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms