1. The first step is InvokeHTTP processor to make a REST API call and receive a JSON response. I have used "Put Response Body In Attribute" to store the JSON response into an attribute.
2. The next step is ExecuteStreamCommand processor to invoke Python script and passing the JSON response attribute from previous step as an input argument. The Command Argument passed to the processor is:
A similar situation. the process automatically removes the double quotes and already passes without them. if escaped, the process does not remove them, but leaves a backslash before the double quotes. It is advised to define a strategy for passing arguments, but so far I have not found examples of how to do this. If anyone has an algorithm for creating such a strategy, please share.