# Error make Expression JSON Object

**URL:** <https://community.n8n.io/t/error-make-expression-json-object/2695>\
**Category:** Questions\
**Created:** [16. Oktober 2020 um 17:29 UTC](https://community.n8n.io/t/error-make-expression-json-object/2695 "2020-10-16T17:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rodrigo\_Meyer](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/rodrigo_meyer/32/2084_2.png) [@Rodrigo\_Meyer](https://community.n8n.io/u/Rodrigo_Meyer)\
**Post date:** [16. Oktober 2020 um 17:29 UTC](https://community.n8n.io/t/error-make-expression-json-object/2695/1 "2020-10-16T17:29:12Z")

</div>

Hi,

I am having problems generating the Expression to send in the header on the http request node method post json / raw active my attempts

Expression:  
{{JSON.parse (JSON.stringify (‘{“Cookie”: "JSESSIONID =’ + $ json [" jsessionid “] + '”}'))}}

Result with node return:  
{“Cookie”: “JSESSIONID = kH8siXLILnO2jUkI-aKIk-8IB7O\_LEIEfDRFUOeU”}

Error presented, and I’m doing the parse:

 ![Captura de Tela 2020-10-16 às 14.26.33](https://europe1.discourse-cdn.com/n8n/original/2X/9/9da58e9c81aff5c78c10e337363d118cd309870d.png)

Below I work inserting manual in place of … but I need to send the value received from a node …

Expression:  
{{JSON.parse (‘{“Cookie”: “JSESSIONID = …”}’)}}

{{JSON.parse (‘{“Cookie”: “JSESSIONID = kH8siXLILnO2jUkI-aKIk-8IB7O\_LEIEfDRFUOeU”}’)}}

Result that works:  
[Object: {“Cookie”: “JSESSIONID = …”}]

[Object: {“Cookie”: “JSESSIONID = kH8siXLILnO2jUkI-aKIk-8IB7O\_LEIEfDRFUOeU”}]

But I need receive … from another node.

---

<div class="post-metadata">

**Author:** ![jan](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/jan/32/9_2.png) [@jan](https://community.n8n.io/u/jan)\
**Post date:** [16. Oktober 2020 um 21:07 UTC](https://community.n8n.io/t/error-make-expression-json-object/2695/2 "2020-10-16T21:07:18Z")

</div>

You should be able to set the expression:

```auto
{{ {"Cookie":$json.jsessionid} }}

```

Here an example workflow:
