# Dummy Visualizing problem

**URL:** <https://community.postman.com/t/dummy-visualizing-problem/49945>\
**Category:** Help Hub\
**Created:** [July 26, 2023, 8:50am UTC](https://community.postman.com/t/dummy-visualizing-problem/49945 "2023-07-26T08:50:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zerlsi](https://avatars.discourse-cdn.com/v4/letter/z/9f8e36/32.png) [@zerlsi](https://community.postman.com/u/zerlsi)\
**Post date:** [July 26, 2023, 8:50am UTC](https://community.postman.com/t/dummy-visualizing-problem/49945/1 "2023-07-26T08:50:53Z")

</div>

Dear Community,

I do my first steps with postman an visualizing and need the help in the community.

API Response:  
{  
“AF”: “Afghanistan”,  
“AX”: “Aland Islands”,  
“AL”: “Albania”,  
“DZ”: “Algeria”,  
“AS”: “American Samoa”,  
“AD”: “Andorra”,  
“AO”: “Angola”,  
“AI”: “Anguilla”,  
“AQ”: “Antarctica”,  
}

Visualize code. I have no API response.

var template = `

 .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;} .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;} .tftable tr {background-color:#ffffff;} .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;} .tftable tr:hover {background-color:#e0ffff;}

```
<tr>
    <td>{{response.code}}</td>
</tr>

```

| Country |
| --- |

`;

pm.visualizer.set(template, {  
response: pm.response.json()  
});

Visualize Respones:

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/a/f/af02a5c234b987f4b616e57133e0957970fcc2c0.png)

If I try it this way I have the response, but I need all results in the table. How I can do this?

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/8/38adbfa102d28d65926752e3bad435a32533a6d6.png)

BR, Tifoso

---

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [July 26, 2023, 10:21am UTC](https://community.postman.com/t/dummy-visualizing-problem/49945/2 "2023-07-26T10:21:10Z")

</div>

As your JSON is pretty flat, the following is an example that includes the key name and the value using the special handlebar variables @key and @this.

[Handlebars (handlebarsjs.com)](https://handlebarsjs.com/)

```auto
let response = pm.response.json() // parse response

var template = `

    <style type="text/css">
        .tftable {font-size:14px;color:#333333;width:100%;border-width: 1px;border-color: #87ceeb;border-collapse: collapse;}
        .tftable th {font-size:18px;background-color:#87ceeb;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;text-align:left;position:sticky;top:0;}
        .tftable tr {background-color:#ffffff;}
        .tftable td {font-size:14px;border-width: 1px;padding: 8px;border-style: solid;border-color: #87ceeb;}
        .tftable tr:hover {background-color:#e0ffff;}
    </style>
    
    <table class="tftable" border="1">

        <tr>
            <th>Country Code</th>
            <th>Country Name</th>
        </tr>

        {{#each response}}
            <tr>
                <td>{{@key}}</td>
                <td>{{@this}}</td>
            </tr>
        {{/each}}

    </table>

`;

pm.visualizer.set(template, {
    response: response
});

```

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/6/7/67efe5280ff47d4f2fca47648d6d89c497bf7ca1.png)

---

<div class="post-metadata">

**Author:** ![zerlsi](https://avatars.discourse-cdn.com/v4/letter/z/9f8e36/32.png) [@zerlsi](https://community.postman.com/u/zerlsi)\
**Post date:** [July 26, 2023, 12:39pm UTC](https://community.postman.com/t/dummy-visualizing-problem/49945/3 "2023-07-26T12:39:38Z")

</div>

wow! great! thank you for your help!
