# Trigger workflow JSON error

**URL:** <https://forums.losant.com/t/trigger-workflow-json-error/4598>\
**Category:** Help\
**Tags:** dashboard, input-control\
**Created:** [June 18, 2022, 4:53am UTC](https://forums.losant.com/t/trigger-workflow-json-error/4598 "2022-06-18T04:53:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohammed\_Alquraini](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@Mohammed\_Alquraini](https://forums.losant.com/u/Mohammed_Alquraini)\
**Post date:** [June 18, 2022, 4:53am UTC](https://forums.losant.com/t/trigger-workflow-json-error/4598/1 "2022-06-18T04:53:23Z")

</div>

Hi,  
i have an issue when trying to trigger a workflow through the input controls on the dashboard, it returns a JSON template error.  
my payload is as follows:  
{  
“HVACsetpoint”:{{HVACsetpoint}},  
“indoorLights”:{{indoorLights}},  
“outdoorLights”:{{outdoorLights}},  
“HVACstatus”:{{HAVCstatus}}  
}

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

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 18, 2022, 12:03pm UTC](https://forums.losant.com/t/trigger-workflow-json-error/4598/2 "2022-06-18T12:03:42Z")

</div>

> [@Mohammed\_Alquraini](#):
>
> “HVACstatus”:{{HAVCstatus}}

^^ Is that your error? All the other properties in your object match the names of the values except this one.

---

<div class="post-metadata">

**Author:** ![Mohammed\_Alquraini](https://avatars.discourse-cdn.com/v4/letter/m/e56c9b/32.png) [@Mohammed\_Alquraini](https://forums.losant.com/u/Mohammed_Alquraini)\
**Post date:** [June 18, 2022, 2:07pm UTC](https://forums.losant.com/t/trigger-workflow-json-error/4598/3 "2022-06-18T14:07:05Z")

</div>

Hi Dylan,  
the value was copied directly from each filed, below is the screen shot:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/getstructure/original/2X/3/3077709078ec80dddaa460b771742f3df614ac4e.png)

---

<div class="post-metadata">

**Author:** ![Dylan\_Schuster](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.losant.com/dylan_schuster/32/2850_2.png) [@Dylan\_Schuster](https://forums.losant.com/u/Dylan_Schuster)\
**Post date:** [June 18, 2022, 6:15pm UTC](https://forums.losant.com/t/trigger-workflow-json-error/4598/4 "2022-06-18T18:15:45Z")

</div>

`{{HAVCstatus}}` is populated by a select input, which means its value will be a string. That is where your JSON error is coming from. The value needs to either be wrapped in quotes ( “{{HAVCstatus}}” ), or you need to use a [`{{jsonEncode}}` helper](https://docs.losant.com/workflows/accessing-payload-data/#jsonencode-val-spacerstr) for the value.
