The "array_read" Function

Syntax#

array_read(str);
ArgumentTypeDescription
strstringA previously-encoded string to decode as an array

Description#

An alias of json_parse. Converts a string previously created by array_write into an array and returns the result.

Note that all array contents will be treated as strings. If the array contains pointers to other types of data, the pointer will be read literally rather than reading the contents of the data itself.

Example#

var file = file_text_open_read("save.dat");
my_array = array_read(file_text_read_string(file));
file_text_close(file);