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
 

Does JSON encode dictionary tables?

Previous Thread :: Next Thread 
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
06 Oct 2015 11:27 PM
I am just wondering before I waste my time creating a structure, does Roblox JSON api save dictionary tables?
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
06 Oct 2015 11:29 PM
what do you mean by "save dictionary tables"?
But yes.
Report Abuse
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
06 Oct 2015 11:32 PM
What I mean by dictionary tables is for example:


random = {
x = "ping pong"
y = "shazm"
}

Instead of a normal array:

random = {
"ping pong",
"shazm"
}
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
06 Oct 2015 11:34 PM
Yep

morashsPeasant is Twilightlicious
Report Abuse
darkemosoul is not online. darkemosoul
Joined: 13 Dec 2008
Total Posts: 458
06 Oct 2015 11:34 PM
Woops I guess you meant the save, I meant Encode.
Report Abuse
larr1212 is not online. larr1212
Joined: 06 Jan 2015
Total Posts: 259
07 Oct 2015 12:04 AM
Just don't mix array pairs with dictionary pairs, the dictionary pairs will be lost if you do.
Report Abuse
morashsPeasant is not online. morashsPeasant
Joined: 06 Jan 2011
Total Posts: 4944
07 Oct 2015 07:35 AM
@larr ???
Report Abuse
TickerOfTime is not online. TickerOfTime
Joined: 02 Sep 2012
Total Posts: 2030
07 Oct 2015 08:37 AM
JSON Examples.

Legal:
{
["Test"] = 1838,
["Fyord? idk"] = "Gorge-thing"
}

Legal:
{
1838,
"Gorge-thing"
}

Illegal:
{
["Test"] = 1838,
"Gorge-thing"
}

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