As described by @bastiankoerber the response.body that is returned by the Sagemaker API is not parsed before returning it to the Connector Runtime. This leads to escaped json which currently cant be used or parsed inside the FEEL resultExpression.
Steps to Reproduce
Call the connector and try to access data inside the response.body object.
Expected Behavior
If Sagemaker returns json and the content type reflects that the runtime should use this information to parse the response body and return a proper unescaped json object as the value of the response.body.
Describe the Bug
As described by @bastiankoerber the
response.body
that is returned by the Sagemaker API is not parsed before returning it to the Connector Runtime. This leads to escaped json which currently cant be used or parsed inside the FEELresultExpression
.Steps to Reproduce
Call the connector and try to access data inside the
response.body
object.Expected Behavior
If Sagemaker returns json and the content type reflects that the runtime should use this information to parse the response body and return a proper unescaped json object as the value of the
response.body
.Environment