We have an use case where were receive form-data payload with multiple key value pairs. I need extract value from one key, create an json object and assign it to new Key.
New payload should have the existing values along with the new one.
Example:
From the above screen shot. I need to extract value of Sample Key which is an json object and create a new Key Sample2 in the below json format.
{
"Trace-Id": "abc123ABC",
"Time": "{client.received.end.timestamp}",
"Payload": ["{Sample Value}"]
}
My Final req going to target system should look like below snapshot.
Solved! Go to Solution.
If I were you I would set the debug property to true, and then examine the trace, to see the call stack when the exception is thrown. javax.json.JsonValue is a class that is used inside the callout, for parsing JSON. I don't know why it would be giving that error. Your configuration works for me.
Do you have the two required dependency jars in your proxy bundle?
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |