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
#1
Hello!

Is there a way to add square brackets in the result when using json.encode?

I want the following:

Code:
local var_ = json.encode({
RoomStatus = 0
)}

to look like this:

Code:
"RoomStatus":[0]

when using log(var_)
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: