# Console Log Issue with expected Fields not in the response

**URL:** <https://community.postman.com/t/console-log-issue-with-expected-fields-not-in-the-response/42594>\
**Category:** Help Hub\
**Tags:** console\
**Created:** [January 4, 2023, 8:31pm UTC](https://community.postman.com/t/console-log-issue-with-expected-fields-not-in-the-response/42594 "2023-01-04T20:31:55Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![michaelderekjones](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/michaelderekjones/32/14819_2.png) [@michaelderekjones](https://community.postman.com/u/michaelderekjones)\
**Post date:** [January 8, 2023, 4:52pm UTC](https://community.postman.com/t/console-log-issue-with-expected-fields-not-in-the-response/42594/7 "2023-01-08T16:52:47Z")

</div>

> [@perezben](#):
>
> Hello mdjones this can be a dummy question but
> 
> how about if I need to insert that array , not modify because it does not exist

Have a look at the following topic which is doing just that.

> [@How to add nested object to existing json](https://community.postman.com/t/how-to-add-nested-object-to-existing-json/42629/2):
>
> You have to stringify the responseData before saving it to the “body” environment variable. (Like you do for the updatedBody). Then parse it when you retrieve it. You can parse this in one line. let variableName = JSON.parse(pm.environment.get("body")); If you use let or var instead of const, then you can update the elements directly. You don’t really need to use push. PS: This is a JavaScript object at this point. In your example, the product.push is incorrect, as surely it should be j…

---

_[View the full topic](https://community.postman.com/t/console-log-issue-with-expected-fields-not-in-the-response/42594)._
