How to Send Empty JSON Object ({ "parameters": {} }) in Oracle Integration Cloud REST Call? — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to Send Empty JSON Object ({ "parameters": {} }) in Oracle Integration Cloud REST Call?

When making a REST service call in Oracle Integration Cloud (OIC), I want to send the request with the following format:

{  "parameters": {}}

In other words, the parameters field should be sent as an empty JSON object.

However, when I define the JSON like this, I get an error on the OIC side. Alternatively, when I add a dummy field inside parameters like this:

{  "parameters": {    "dummy": ""  }}

I get an unexpected field error on the service side, because I actually want to send an empty object.

Interestingly, when I leave the parameters field empty or just define it as {}, OIC sends the request like this:

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!