Garry's Mod Wiki

util.JSONToTable

util.JSONToTable

table util.JSONToTable( string json )

Description

Converts a JSON string to a Lua table.

Keys are converted to numbers wherever possible. This means using Player:SteamID64 as keys won't work.

There is a limit of 15,000 keys total.

Colors will not have the color metatable.

Issue Tracker: 2407

Arguments

1 string json
The JSON string to convert.

Returns

1 table
The table containing converted information. Returns nothing on failure.

Special Pages


Wikis

?

Render Time: 60ms

DB GetPage 43
Generate Html 3
SaveChanges (1) 5
Render Body 0
Render Sidebar 7