[js] add a helper to dump objects to json for debugging purposes
[js] add a helper to dump objects to json for debugging purposes

cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp,cygx/nqp