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.encode square brackets
#3
Thank you!

As a response from an API call, i get the following table:

Code:
API 08.03.2023 15:01:36
* table:
["NumberOfBeds"]
  * number: 0
["WeekDays"]
  * userdata: NULL
["RoomStatusAlias"]
  * userdata: NULL
["Floor"]
  * userdata: NULL
["Number"]
  * userdata: NULL

Is there a way to convert the "userdata" to a string?
Whenever I try to access it, I get the error message "attempt to index field 'Room' (a userdata value)".
Reply


Messages In This Thread
json.encode square brackets - by Krstfr2k - 08.03.2023, 10:21
RE: json.encode square brackets - by admin - 08.03.2023, 10:23
RE: json.encode square brackets - by Krstfr2k - 08.03.2023, 14:04
RE: json.encode square brackets - by admin - 08.03.2023, 14:26

Forum Jump: