Skip to content
Advertisement

how to access raw data in Postman(Request section)?

So I want to print out the client Name and the client Email as string values through the Postman console, but when I call the method I get a the array but with undefined values.

JavaScript

Thank you very much!

Advertisement

Answer

You can get request body raw using:

JavaScript

For example:

You have request body in postman:

JavaScript

You want to access value of foo in tab Tests:

JavaScript
Advertisement