# Issue with the Set Value node

**URL:** <https://forums.losant.com/t/issue-with-the-set-value-node/743>\
**Category:** Help\
**Created:** [January 19, 2018, 5:40pm UTC](https://forums.losant.com/t/issue-with-the-set-value-node/743 "2018-01-19T17:40:05Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![francois\_Oudot](https://avatars.discourse-cdn.com/v4/letter/f/a587f6/32.png) [@francois\_Oudot](https://forums.losant.com/u/francois_Oudot)\
**Post date:** [January 19, 2018, 5:40pm UTC](https://forums.losant.com/t/issue-with-the-set-value-node/743/1 "2018-01-19T17:40:05Z")

</div>

Hi  
I am storing 2 values at the same time so I decided to use a JSON  
Here is the JSON w the data I am trying to store  
 ![57 PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/58ba0743e270fec40eda75567fe73955d4bc3142.png)  
Here is how I configured the set value node  
 ![03 PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/162c159c9f25d64bbbceb6beb392d9a162523a2e.png)  
And here is how I declared the workflow value  
 ![13 PM](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/993431e73461785f89b2cc140f15a22bb384d339.png)  
What did I miss here?  
Thanks!

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/rob/32/384_2.png) [@Rob](https://forums.losant.com/u/Rob)\
**Post date:** [January 19, 2018, 7:01pm UTC](https://forums.losant.com/t/issue-with-the-set-value-node/743/2 "2018-01-19T19:01:46Z")

</div>

So what’s happening is that you’re asking to store JSON, but the handlebars template is giving you back an object at the path specified (`data.cleaningTime`).

The “Store JSON” option is expecting you to do something like:

```auto
{ "startTime": {{data.cleaningTime.startTime}}, "endTime": {{data.cleaningTime.endTime}} }

```

* * *

In this case, I would suggest using the “Store Value from Payload Path” option under “Operation”. Then, your “Value” would just be `data.cleaningTime`.

![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/1X/e59499992d6c4dc7d7016a6e0c8d67b42f54e2de.png)

* * *

Hope this helped,  
Rob
