# How to extract response body elements full branch and verify same data displays in another api (GET)

**URL:** <https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788>\
**Category:** Help Hub\
**Tags:** tests\
**Created:** [August 6, 2020, 4:35pm UTC](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788 "2020-08-06T16:35:30Z")\
**Posts on this page:** 1\
**Showing post:** 29

<div class="post-metadata">

**Author:** ![shahbaz.shiekhqa](https://avatars.discourse-cdn.com/v4/letter/s/c5a1d2/32.png) [@shahbaz.shiekhqa](https://community.postman.com/u/shahbaz.shiekhqa)\
**Post date:** [August 18, 2020, 7:19pm UTC](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788/29 "2020-08-18T19:19:43Z")

</div>

Hi I did post another question over here… this is a bit complex …

> [@How to verify full body response within a Pre requisite script and compare with response body?](https://community.postman.com/t/how-to-verify-two-elements-in-the-response-body-and-ensure-all-the-other-elements-display/15123):
>
> Hi , I have 67 branches below and i have added a variable within Pre - Requisite script var expectedJsonBody = [ { "siteId": 685, "siteName": "Saint Francis Hospital-Memphis", "hcoid": 2659, "defaultSite": false, "address": { "address1": "5959 Park Avenue", "address2": null, "city": "Memphis", "state": "TN", "zip": "38119-5198" } }, { pm.environment.set(“ExpectedSitesTodisplay”, JSON.stringify(expectedJsonBody)); …

---

_[View the full topic](https://community.postman.com/t/how-to-extract-response-body-elements-full-branch-and-verify-same-data-displays-in-another-api-get/14788)._
