# Json to influx node error invalid boolean

**URL:** <https://discourse.nodered.org/t/json-to-influx-node-error-invalid-boolean/2419>\
**Category:** General\
**Created:** [20 August 2018 15:07 UTC](https://discourse.nodered.org/t/json-to-influx-node-error-invalid-boolean/2419 "2018-08-20T15:07:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kelster101757](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kelster101757](https://discourse.nodered.org/u/kelster101757)\
**Post date:** [20 August 2018 15:07 UTC](https://discourse.nodered.org/t/json-to-influx-node-error-invalid-boolean/2419/1 "2018-08-20T15:07:06Z")

</div>

Hello,

When I inject the following json into influxdb out node:

"  
{  
"tags": {  
"MachineName": "TBL165-169",  
"MachineType": "Rig Test"  
},  
"machine\_working": true  
}"

I get the error "Error: A 400 Bad Request error occurred: {"error":"unable to parse 'NoT/device machine\_working="true",tags=[object Object]': invalid boolean"}↵"

Any ideas how to resolve this? or what the problem is?

Thanks

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [20 August 2018 15:55 UTC](https://discourse.nodered.org/t/json-to-influx-node-error-invalid-boolean/2419/2 "2018-08-20T15:55:57Z")

</div>

How exactly are you injecting that?

The error says it cannot parse:

```auto
'NoT/device machine_working="true",tags=[object Object]'

```

The `[object Object]` is in the place your tags object should be - and that's what you get if you let JavaScript stringify an object without encoding it to JSON.

So to figure out why that's happening, we'd need to see a bit more of your flow that generates that JSON and how you pass it to the influxdb node.

---

<div class="post-metadata">

**Author:** ![kelster101757](https://avatars.discourse-cdn.com/v4/letter/k/eb8c5e/32.png) [@kelster101757](https://discourse.nodered.org/u/kelster101757)\
**Post date:** [20 August 2018 16:10 UTC](https://discourse.nodered.org/t/json-to-influx-node-error-invalid-boolean/2419/3 "2018-08-20T16:10:32Z")

</div>

Great thanks for the quick reply, i've attached the nodes in question:

[{"id":"c5d94c5b.daed6","type":"inject","z":"eec9fac6.c51e98","name":"works ","topic":"NoT/device","payload":"{"tags":{"MachineName":"TBL165-169","MachineType":"Rig Test"},"machine\_working":true}","payloadType":"json","repeat":"","crontab":"","once":false,"x":330,"y":520,"wires":[["b03fae38.3918b","f4219dbe.bf7b1"]]},{"id":"4efef8c0.893ad8","type":"json","z":"eec9fac6.c51e98","name":"","pretty":false,"x":730,"y":500,"wires":[["f4219dbe.bf7b1"]]},{"id":"f4219dbe.bf7b1","type":"influxdb out","z":"eec9fac6.c51e98","influxdb":"1ecde249.cde93e","name":"","measurement":"NoT/TBL165-169/TBL165-Rig-TestLab/TBL165-169BarsBendingState","precision":"","retentionPolicy":"","x":1220,"y":480,"wires":[]},{"id":"b03fae38.3918b","type":"debug","z":"eec9fac6.c51e98","name":"","active":true,"console":"false","complete":"payload","x":810,"y":720,"wires":[]},{"id":"1ecde249.cde93e","type":"influxdb","z":"","hostname":"172.16.24.11","port":"8086","protocol":"http","database":"TBGIOTDB","name":"TBGIOTTimeSeriesDB","usetls":false,"tls":""}]
