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:
Tagged:
0