Trying to ignore a specific field in the response

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?).

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?

Are you sure that

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"
      }
}