node-red / cookbook.nodered.org

Node-RED Cookbook
http://cookbook.nodered.org
Apache License 2.0
84 stars 34 forks source link

Feedback on 'Convert to/from JSON' #100

Closed ghost closed 2 years ago

ghost commented 2 years ago

with function inject is all clear and good but how with the following string "hum= 38.00% , temp= 24.00°C , hic= 23.45°C , CO= 120"

Unexpected token h in JSON at position 0?

Dick

knolleary commented 2 years ago

Hi @pa0dow,

this recipe is about handling JSON data. Your string is not JSON, so this recipe doesn't apply.

Please use the forum for general how-to questions - https://discourse.nodered.org.

ghost commented 2 years ago

THANKS I look for another solution Dick