Subj : Re: Add and object to an array
To   : Mortifis
From : echicken
Date : Thu Jul 18 2019 05:21 pm

 Re: Re: Add and object to an array
 By: Mortifis to echicken on Thu Jul 18 2019 17:40:34

Mo> for (var i = 0; i < user_list.length; i++) {
Mo> print(user_list[i]+"\r\n");
Mo> }

Then you'd get a whole bunch of [object Object] output or something similar (you're trying
to print each array element, as a string, but they're objects).  Something like this:

 print(user_list[i].alias + '\r\n');

or this:

 print(JSON.stringify(user_list[i]));

or this, without the for loop:

 print(JSON.stringify(user_list));

---
echicken
electronic chicken bbs - bbs.electronicchicken.com
� Synchronet � electronic chicken bbs - bbs.electronicchicken.com