I was bored today and made a Module that can convert tables to folders and folders to tables.
Just a simple thing, let me know what you think
Functions:
ToInstance
:ToInstance(Table<table>) -> Folder<Instance>
Turns the specified table into a Folder containing the tables contents (transformed into Value instances)
‘‘Table’’ can also be a string (JSON) and will return the same result.
FromInstance
:FromInstance(Folder<Instance>, ConvertToJSON<boolean>) -> table<table>
Transforms a Folder back into a table, and optionally converts it into JSON.
Plans for future:
- Make a function for converting to DataStore-safe tables, by converting unsupported values (like CFrames, BrickColors, etc. into strings [and back]