# Trying to ignore a specific field in the response

**URL:** <https://community.postman.com/t/trying-to-ignore-a-specific-field-in-the-response/5117>\
**Category:** Help Hub\
**Created:** [April 23, 2019, 11:22pm UTC](https://community.postman.com/t/trying-to-ignore-a-specific-field-in-the-response/5117 "2019-04-23T23:22:52Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![brian](https://avatars.discourse-cdn.com/v4/letter/b/97f17d/32.png) [@brian](https://community.postman.com/u/brian)\
**Post date:** [April 23, 2019, 11:22pm UTC](https://community.postman.com/t/trying-to-ignore-a-specific-field-in-the-response/5117/1 "2019-04-23T23:22:52Z")

</div>

In my response, I’m expecting:

```
{
        "key1": {
                "subkey1": "value"
                "subkey2": "value"
}

```

The value of `subkey2` causes an error.

How can I get the response to ignore that error and only give me the response without `subkey2`?

I’m unsure if it’s something I need to put in the URL, or if I need to put something in the Pre-request Script (or Tests?).

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 24, 2019, 10:22am UTC](https://community.postman.com/t/trying-to-ignore-a-specific-field-in-the-response/5117/2 "2019-04-24T10:22:07Z")

</div>

Hey @brian,

What do you mean by:

> The value of `subkey2` causes an error.

Are you able to post an example of the error or a screenshot, please?

---

<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 24, 2019, 2:45pm UTC](https://community.postman.com/t/trying-to-ignore-a-specific-field-in-the-response/5117/3 "2019-04-24T14:45:51Z")

</div>

Are you sure that

> [@brian](#):
>
> { “key1”: { “subkey1”: “value” “subkey2”: “value” }

is the response you are expecting…  
It is not valid JSON syntax.

Something like the following would be more expected

> ```
> {
> "key1": {
> "subkey1": "value",
> "subkey2": "value"
> }
> }
> 
> ```
