# Removing parameters outputted in JSON response. How to remove array and only show specific array of fields?

**URL:** <https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393>\
**Category:** Help Hub\
**Tags:** array\
**Created:** [January 28, 2020, 3:53pm UTC](https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393 "2020-01-28T15:53:16Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![LokeshReddy219](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@LokeshReddy219](https://community.postman.com/u/LokeshReddy219)\
**Post date:** [November 9, 2020, 1:55pm UTC](https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393/21 "2020-11-09T13:55:25Z")

</div>

This helps Danny, Thank you - After saving the JSON object by deleting status from POST response body i cannot use same data, still i need to modify couple attributes in {{putRequestBody}} before making PUT request. how to do that?

---

<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:** [November 9, 2020, 2:35pm UTC](https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393/22 "2020-11-09T14:35:42Z")

</div>

Change them either before saving the `Response Body` variable or in the `Pre-Request` of the PUT request.

Just another basic example and not the most efficient or best way of doing it:

```javascript
let modifiedBody = JSON.parse(pm.environment.get('putRequestBody'))

modifiedBody.json = "Danny"

pm.environment.set('modifiedBody', JSON.stringify(modifiedBody))

```

Then use that `{{modifiedBody}}` variable in the PUT request body.

 ![image](https://us1.discourse-cdn.com/getpostman/original/3X/3/6/36ea1c1c6584d496356900fbfdf3895540ddd861.png)

---

<div class="post-metadata">

**Author:** ![LokeshReddy219](https://avatars.discourse-cdn.com/v4/letter/l/c4cdca/32.png) [@LokeshReddy219](https://community.postman.com/u/LokeshReddy219)\
**Post date:** [November 17, 2020, 11:36am UTC](https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393/23 "2020-11-17T11:36:33Z")

</div>

This solution works for me Danny, Thank you for your prompt and accurate response.

[Previous page](https://community.postman.com/t/removing-parameters-outputted-in-json-response-how-to-remove-array-and-only-show-specific-array-of-fields/10393.md?page=1)
