# Printing values to the Test Results and Console

**URL:** <https://community.postman.com/t/printing-values-to-the-test-results-and-console/9897>\
**Category:** Help Hub\
**Created:** [January 6, 2020, 6:19pm UTC](https://community.postman.com/t/printing-values-to-the-test-results-and-console/9897 "2020-01-06T18:19:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![oscarmuk](https://avatars.discourse-cdn.com/v4/letter/o/ea5d25/32.png) [@oscarmuk](https://community.postman.com/u/oscarmuk)\
**Post date:** [January 6, 2020, 6:19pm UTC](https://community.postman.com/t/printing-values-to-the-test-results-and-console/9897/1 "2020-01-06T18:19:06Z")

</div>

I have searched in this forum and googled but no joy. I have a large data set and retrieving the values would be immensely helpful.

All I’m trying to do is to print out the following 3 values in the

1. Postman Test Results
2. Postman Console

{  
“array”: [  
{  
“id”: “11111”,  
“title”: “Title1”,  
“name”: “title1”,  
…lots of other values that I don’t necessarily have to capture  
},  
{  
“id”: “22222”,  
“title”: “Title2”,  
“name”: “title2”,  
…lots of other values that I don’t necessarily have to capture  
},  
{  
“id”: “33333”,  
“title”: “Title3”,  
“name”: “title3”,  
…lots of other values that I don’t necessarily have to capture

---

<div class="post-metadata">

**Author:** ![lvaltierra](https://avatars.discourse-cdn.com/v4/letter/l/d9b06d/32.png) [@lvaltierra](https://community.postman.com/u/lvaltierra)\
**Post date:** [January 6, 2020, 7:06pm UTC](https://community.postman.com/t/printing-values-to-the-test-results-and-console/9897/2 "2020-01-06T19:06:02Z")

</div>

You can loop through the array and print whichever properties you want to the console.

```
const jsonData = pm.response.json()
for (const props of jsonData.array) {
console.log(props.id, props.title, props.name)
}
```
