When we try to pass data in a JSON format to a 3rd party REST API endpoint.
the below is JSON format accepted by 3rd party REST API endpoint
but ACS formatted the JSON format as below
which is not accepted by 3rd party REST API endpoint.
There are two factors that influenced the decision to use the format -
This normalized format allowed us to have a fixed format without any UI support to customize how to format this according to 3rd party API spec. The intention was to use a translation layer such as Adobe IO Runtime, or AWS Lambda etc. to do on-the-fly translation of request/response as needed.