Help with vizualize results

Hi All,

I am trying out the visualize option in postman results and followed the steps from Postman guide. But I couldn’t see the results in a tabular column as expected. I am using " http://www.omdbapi.com/?apikey=203374f9&i=tt1285017" with get method.

Results:

But i can see the results in pretty format.

Can you please point out what I am doing wrong please.

Hey @kartikraja,

In the examples, it would have been looping through an array [ ] of data in the response.

It would have needed to use the handlebars {{#each}} ... {{/each}} block to do this but because that API you’re calling is just a single object { }, it doesn’t need to use this block.

You would only really need to do something like this to see the response values in the table:

<table>
    <tr>
        <th>Title</th>
        <th>Genre</th>
    </tr>
    <tr>
        <td>{{response.Title}}</td>
        <td>{{response.Genre}}</td>
    </tr>
</table>

This post by @singhsivcan might be able to help you out, he’s created a template that would allow you to present any JSON response in a table.

Just doing a quick check, it would look something like this for you:

4 Likes

Thank you so much. This cleared my doubt.

1 Like