Subj : dump all object keys/values
To   : Digital Man
From : Nightfox
Date : Wed Apr 08 2020 03:25 pm

 Re: dump all object keys/values
 By: Digital Man to Nightfox on Wed Apr 08 2020 12:59 pm

>> To print out the key/values of an object, I usually like to do this
>> (this example assumes it's being run on the telnet terminal:

>> for (var prop in http_request.query)
>>    console.print(prop + ": " + http_request.query[prop] + "\r\n");
>> console.pause();

DM> JSON.stringify() does seem easier though:

DM> console.print(lfexpand(JSON.stringify(http_request.query, null, 4)));

Interesting, I'll have to try that.

Nightfox

---
� Synchronet � Digital Distortion: digitaldistortionbbs.com