# In a JSON response how to get a value searching another value at same level?

**URL:** <https://community.postman.com/t/in-a-json-response-how-to-get-a-value-searching-another-value-at-same-level/31860>\
**Category:** Help Hub\
**Tags:** tests, variables\
**Created:** [January 25, 2022, 12:25am UTC](https://community.postman.com/t/in-a-json-response-how-to-get-a-value-searching-another-value-at-same-level/31860 "2022-01-25T00:25:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daninanan](https://avatars.discourse-cdn.com/v4/letter/d/977dab/32.png) [@daninanan](https://community.postman.com/u/daninanan)\
**Post date:** [January 25, 2022, 12:25am UTC](https://community.postman.com/t/in-a-json-response-how-to-get-a-value-searching-another-value-at-same-level/31860/1 "2022-01-25T00:25:58Z")

</div>

Hi all,

Hoping you can provide some guidance please. I have a JSON response like the following:

{  
“id”: “12345678”,  
“name”: “APP1”,  
“created”: “2020-02-20T12:12:40.294Z”  
}  
{  
“id”: “dd8b0230”,  
“name”: “APP2”,  
“created”: “2020-04-20T12:12:40.294Z”  
}  
{  
“id”: “b023017de2”,  
“name”: “APP3”,  
“created”: “2020-06-20T12:12:40.294Z”  
}  
{  
“id”: “23017de2ed452”,  
“name”: “APP4”,  
“created”: “2020-08-20T12:12:40.294Z”  
}  
{  
“id”: “023017de2ed”,  
“name”: “APP5”,  
“created”: “2020-09-20T12:12:40.294Z”  
}

And I’m trying to write a test script in postman providing an entire list of app names (“name”), and returning only the “id” of each app name given. The problem I’m having is that the “id” object is at the same level as “name” so I’m not sure how to search through the whole response if the objects are not nested and just to get the “id” objects of all the “names” given.

Any help would be appreciated.

Thanks!
