generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

Re: http json method being noob

Previous Thread :: Next Thread 
Syntaxs is not online. 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 is not online. 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
MakerModelLua is not online. MakerModelLua
Joined: 24 Feb 2013
Total Posts: 3544
02 Dec 2015 09:53 PM
works fine for me

> local _t = { ["something"] = 5 } print(game.HttpService:JSONEncode(_t))
{"something":5}
Report Abuse
Syntaxs is not online. 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 is not online. viplav37
Joined: 17 Aug 2011
Total Posts: 1918
02 Dec 2015 10:57 PM
papi being papi
Report Abuse
Syntaxs is not online. Syntaxs
Joined: 27 May 2013
Total Posts: 988
02 Dec 2015 11:48 PM
noob
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image