Revision Difference
util.JSONToTable#544143
<function name="JSONToTable" parent="util" type="libraryfunc">
<description>
Converts a JSON string to a Lua table.
<warning>Keys are converted to numbers wherever possible. This means using <page>Player:SteamID64</page> as keys won't work.</warning>⤶
<warning>There is a limit of 15,000 keys total.</warning>
<warning>Keys are converted to numbers wherever possible. This means using <page>Player:SteamID64</page> as keys won't work.⤶
⤶
There is a limit of 15,000 keys total.</warning>
<bug issue="3561">This will attempt cast the string keys "inf", "nan", "true", and "false" to their respective Lua values. This completely ignores nulls in arrays.</bug>
<bug issue="2407">Colors will not have the color metatable.</bug>
⤶
</description>
</description>
<realm>Shared and Menu</realm>
<args>
<arg name="json" type="string">The JSON string to convert.</arg>
</args>
<rets>
<ret name="" type="table">The table containing converted information. Returns nothing on failure.</ret>
</rets>
</function>