This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Json data to table problem
#1
I have a problem with json data from the MQTT broker.

I receive this string from the MQTT : {"Redox": "954","Ph": "6.67","Temperatuur": "10.5","Error message": ""}
When I check it (https://jsonformatter.curiousconcept.com/#) is valid JSON data.

When i decode this with 
payload = "{"Redox": "954","Ph": "6.67","Temperatuur": "10.5","Error message": ""}"
msg =  json.pdecode(payload)

The result is still a string instead of a table.

I guess i'm missing something obvious.

Can anyone help me?
Reply


Messages In This Thread
Json data to table problem - by bednarekluc - 28.03.2021, 11:55
RE: Json data to table problem - by admin - 28.03.2021, 12:13
RE: Json data to table problem - by admin - 28.03.2021, 12:23

Forum Jump: