RbxUtility (Library): Difference between revisions

From Legacy Roblox Wiki
Jump to navigationJump to search
>JulienDethurens
Created page with "RbxUtility is a RbxLibrary that provides functions for various uses. It contains a JSON encoder and a JSON decoder, which can be used to store tab..."
>JulienDethurens
No edit summary
Line 11: Line 11:
*[[RbxLibrary]]
*[[RbxLibrary]]
*[http://www.roblox.com/RbxUtility-item?id=60595411 RbxUtility]
*[http://www.roblox.com/RbxUtility-item?id=60595411 RbxUtility]
[[Category:Libraries]]

Revision as of 06:19, 7 February 2012

RbxUtility is a RbxLibrary that provides functions for various uses. It contains a JSON encoder and a JSON decoder, which can be used to store tables as strings and convert them back to tables, but also some other useful functions that can be useful for different things.

The API

EncodeJSON( table table_to_encode )
Returns string encoded_table
Description: Returns the table encoded as a JSON string.


DecodeJSON( string encoded_table )
Returns table decoded_table
Description: Returns a table with all parsed JSON values.


NOTE: There is also a MakeWedge function, but it shouldn't be used. Instead, use the AutowedgeCell or AutowedgeCells method of Terrain.

See Also