# JSON Path in the response

**URL:** <https://community.postman.com/t/json-path-in-the-response/1870>\
**Category:** Help Hub\
**Created:** [June 14, 2018, 12:07pm UTC](https://community.postman.com/t/json-path-in-the-response/1870 "2018-06-14T12:07:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![seslav](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@seslav](https://community.postman.com/u/seslav)\
**Post date:** [June 14, 2018, 12:07pm UTC](https://community.postman.com/t/json-path-in-the-response/1870/1 "2018-06-14T12:07:04Z")

</div>

Hi,

Recently I had to work on integration project where the API returned huuge responses (thousands of lines 10K even more sometimes)  
I really miss a functionality like Json Path that could extract data from such requests.

What do you think?

---

<div class="post-metadata">

**Author:** ![Webhead-Solutions](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/webhead-solutions/32/1523_2.png) [@Webhead-Solutions](https://community.postman.com/u/Webhead-Solutions)\
**Post date:** [March 30, 2019, 7:49pm UTC](https://community.postman.com/t/json-path-in-the-response/1870/2 "2019-03-30T19:49:14Z")

</div>

Have you found a solution for this? Thank you.

---

<div class="post-metadata">

**Author:** ![Whersh](https://avatars.discourse-cdn.com/v4/letter/w/9d8465/32.png) [@Whersh](https://community.postman.com/u/Whersh)\
**Post date:** [April 2, 2019, 4:02pm UTC](https://community.postman.com/t/json-path-in-the-response/1870/3 "2019-04-02T16:02:01Z")

</div>

[https://learning.getpostman.com/docs/postman/scripts/test\_examples](https://learning.getpostman.com/docs/postman/scripts/test_examples)

Would something like the following help you?

**Check for a JSON value**

```auto
pm.test("Your test name", function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData.value).to.eql(100);
});

```

---

<div class="post-metadata">

**Author:** ![tmccann](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/tmccann/32/3550_2.png) [@tmccann](https://community.postman.com/u/tmccann)\
**Post date:** [April 3, 2019, 11:47am UTC](https://community.postman.com/t/json-path-in-the-response/1870/4 "2019-04-03T11:47:34Z")

</div>

Jumping in here trying to understand the ask.

As @Whersh mentioned, if you want to interact with the JSON response body you can do so using something like this:  
`var jsonData = pm.response.json();` and from there you can work though the data.

You can then step up your game a bit using libraries like LoDash to put some of this into arrays and maps to assert on or set to variables to be used later on.

If we are off the mark on this, it would be good to know more about what you are looking to do so we can help out.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [December 9, 2024, 2:33pm UTC](https://community.postman.com/t/json-path-in-the-response/1870/5 "2024-12-09T14:33:41Z")

</div>

Closed on December 9, 2024, 2:33pm UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
