Syntaxs
|
  |
| Joined: 27 May 2013 |
| Total Posts: 988 |
|
|
| 02 Dec 2015 09:24 PM |
is it broken
local _t = { ["something"] = 5 } someval.Value = hs:JSONEncode(_t) -> cannot parse
&& if i manually set somval to the json encoded _t ,
hs:JSONDecode(someval.Value) -> cannot convert json
broken? |
|
|
| Report Abuse |
|
|
Casualist
|
  |
| Joined: 26 Jun 2014 |
| Total Posts: 4443 |
|
|
| 02 Dec 2015 09:46 PM |
local _t = { ["something"] = 5 } print(game:GetService("HttpService"):JSONEncode(_t))
It works, you are doing something wrong. Likely issue is you are trying to JSONEncode a table with keys and/or values that are userdata. |
|
|
| Report Abuse |
|
|
|
| 02 Dec 2015 09:53 PM |
works fine for me
> local _t = { ["something"] = 5 } print(game.HttpService:JSONEncode(_t)) {"something":5} |
|
|
| Report Abuse |
|
|
Syntaxs
|
  |
| Joined: 27 May 2013 |
| Total Posts: 988 |
|
|
| 02 Dec 2015 09:59 PM |
its working now maybe it was temp broken, but i ran it again and it worked lol |
|
|
| Report Abuse |
|
|
viplav37
|
  |
| Joined: 17 Aug 2011 |
| Total Posts: 1918 |
|
| |
|
Syntaxs
|
  |
| Joined: 27 May 2013 |
| Total Posts: 988 |
|
| |
|