0
Beantwoord

Pass JSON data to the API call

Anoniem 8 jaar geleden in Studio bijgewerkt door Gandalf 8 jaar geleden 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
Beantwoord

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}