how to send json as input in postman flow

262 Views Asked by At

How can I use a Json as an input in a flow? Like the picture below. Of course, it sends this as a text and gives an error enter image description here

1

There are 1 best solutions below

0
heef On BEST ANSWER

Here's what I had to do to get around this limitation (odd that Postman doesn't allow for it inherently):

{}

And then in the Collection endpoint, leave the body "raw" and use a variable:

{}

Anecdotally, the JSON I provided needed to have newline characters after each property removed -- just FYI in case you run into similar trouble.