If you have a JSON string like this:
Code:
[Nallebeorn, pacarioco, Donald, Iwata]
You can parse that into a GameMaker ds_list with the following code:
Code:
var map = json_decode(jsonString);
var names = map[?"default"]; // Store the ds_list containing all the names in this variable
/// .... do stuff with the list here ....
ds_map_destroy(map);
json_decode() was designed so that it always returns a ds_map, even when the source JSON only contains an array (i.e. list) -- the map will have a single key "default" which contains the list. Don't forget to destroy
map when you don't need it or the names list any more (the list will be destroyed automatically when the parent map is destroyed), or you might end up with a memory leak.
However, I think you need to give us some more info. My first impression was that you retrieved a list of names from an online database (MySQL or something like that), but reading it again I'm not entirely sure if this is the case...?