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.

Help decoding JSON data from socket.http.request
#2
Hi,

Try  this:
Code:
if type(response_body) == 'table' then
  data = json.pdecode(table.concat(response_body))
else
  data = json.pdecode(response_body)
end
log(data)
BR,

Erwin
Reply


Messages In This Thread
RE: Help decoding JSON data from socket.http.request - by Erwin van der Zwart - 01.11.2017, 21:50

Forum Jump: