0
Respost

Pass JSON data to the API call

Anònim fa 8 anys en Studio updated by Gandalf fa 8 anys 1

I want to pass JSON data to the web POST. The incoming parameter is of type (application/json). How should I configure the variables to send JSON input?

service studio workflow variables
Respost

Im assuming you want to pass JSON data out of Warewolf and into an existing web service (not on Warewolf) which has inputs that are JSON data.


You can convert your variables to JSON using the Create JSON tool:


Consider the above example. If the value of [[mydata]] was 1234, then after execution, the value of [[mydata]] would be: {"mydata":1234}