Skip to main content

The "ds_struct_read" Function

Syntax#

ds_struct_read(str);
ArgumentTypeDescription
strstringA previously-written struct string to be converted into a struct

Description#

An alias of json_parse. Converts a string previously written with ds_struct_write back into a struct, including any sub-structs it may contain.

Example#

var file = file_text_open_read("settings.json");
my_struct = ds_struct_read(file_text_read_string(file));
file_text_close(file);