json_savefile

A savefile implementation that handles all data using json. Also saves it using JSON too, fancy.
Vars | |
auto_save | If this is set to true, calling set_entry or remove_entry will automatically call save(), this does not catch modifying a sub-tree, nor do I know how to do that |
---|---|
Procs | |
get_entry | Gets an entry from the json tree, with an optional default value. If no key is specified it throws the entire tree at you instead |
import_byond_savefile | Traverses the entire dir tree of the given savefile and dynamically assembles the tree from it |
remove_entry | Removes the given key from the tree |
set_entry | Sets an entry in the tree to the given value |
wipe | Wipes the entire tree |
Var Details
auto_save

If this is set to true, calling set_entry or remove_entry will automatically call save(), this does not catch modifying a sub-tree, nor do I know how to do that
Proc Details
get_entry
Gets an entry from the json tree, with an optional default value. If no key is specified it throws the entire tree at you instead
import_byond_savefile
Traverses the entire dir tree of the given savefile and dynamically assembles the tree from it
remove_entry
Removes the given key from the tree
set_entry
Sets an entry in the tree to the given value
wipe
Wipes the entire tree