Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JDev 12.2.1.1.0 How to convert JSON Object to a String

3052714May 22 2017 — edited May 24 2017

I am consuming a Rest Service as Reference in JDeveloper using SOA 12c. This Rest Service in JDeveloper, where the Input is taken as JSON:Object . However the RestReference has input parameters as (value1 String, value2 String) as parameters. 

How do I convert JSON:Object that is obtained thru RestService be converted into appropriate value1, value2 as parameters.

Using JSON:Object directly gives error java.lang.String cannot be cast to java.util.Map

I need to convert this JSON:Object and parse it to get values for value1, value2 and pass it to Rest Reference.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2017
Added on May 22 2017
2 comments
717 views