0
Answered

Pass JSON data to the API call

Anonymous 2 years ago in Studio • updated by Gandalf 2 years ago 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
Answered

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}