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 not working correctly
#1
Hello,

How i can use json.encode() function? I tried use this script:

Code:
test = {
  one='first',two='second',three={2,3,5}
}

jsonTest = json.encode(test)



but i get error: 

Code:
attempt to index global 'json' (a nil value)
stack traceback:
User script:37: in main chunk
Reply


Messages In This Thread
json.encode not working correctly - by usyntax - 26.04.2019, 06:29

Forum Jump: