|
| 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
|
  |
| 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 |
|
|
|
| 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 |
|
|
|
| 06 Oct 2015 11:34 PM |
Yep
morashsPeasant is Twilightlicious |
|
|
| Report Abuse |
|
|
|
| 06 Oct 2015 11:34 PM |
| Woops I guess you meant the save, I meant Encode. |
|
|
| Report Abuse |
|
|
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 |
|
|
| |
|
|
| 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 |
|
|