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
#5
(28.03.2021, 12:23)admin Wrote: It's possible that the payload is encoded twice so you get a string after first decode. Try decoding the msg again and post what you get.

Indeed it was encoded twice.

Double decode solved it.

local msg = json.pdecode(json.pdecode(payload))

Thank you.
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
RE: Json data to table problem - by bednarekluc - 28.03.2021, 13:56

Forum Jump: