Integration Technologies - JDE1 (MOSC)

MOSC Banner

JSON Response without unescaped format

edited May 6, 2022 4:25PM in Integration Technologies - JDE1 (MOSC) Question

Trying to use a Service Request Custom on orchestrator, the response always return backslash before each double quote, I think is because the HashMap just work with String at the second argument in this definition:

HashMap <String,Object> returnMap = new HashMap <String,Object> ();

returnMap.put("json", nums);


I tried to change Object to another type but return this message:

 "message" : "java.util.LinkedHashMap cannot be cast to java.lang.String",

 "exception" : "java.lang.ClassCastException"


Im working with Orchestrator Versión Studio: 6.1.4.0

Expected Result:

{

"json" : {"name":"FirstName", "DOB":1999}

}

Actual Result:

{

"json" : "{\"name\":\"FirstName\", \"DOB\":1999}"

}

Thanks for any advise

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

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

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center