org.mozilla.javascript.NativeArray toJSON error
"Julian Tree" <[email protected]> Wed, 1 Oct 2008 01:30:25 -0400
| Newsgroups | gmane.comp.java.helma.general |
|---|---|
| Message-ID | <[email protected]> |
--===============1663156504== Content-Type: multipart/alternative; boundary="----=_Part_62369_27849677.1222839025510" ------=_Part_62369_27849677.1222839025510 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sometimes when I have an object with arrays I'm doing if(!session.data.jobulousSurvey.Review.responses) session.data.jobulousSurvey.Review.responses = [] if I uneval. uneval(session.data.jobulousSurvey.Review.responses) // this is end up to be org.mozilla.javascript.NativeArray 1. why is this happening? 2. this doesn't work with session.data.jobulousSurvey.Review.toJSON() I don't really mind using a mozilla array, as long as I can use toJSON method on it. Any recommendation or insight as why this is happening? Is this a bug? Julian ------=_Part_62369_27849677.1222839025510 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-Disposition: inline <div dir="ltr">Sometimes when I have an object with arrays <br><br>I'm doing <br><br>if(!session.data.jobulousSurvey.Review.responses) session.data.jobulousSurvey.Review.responses = []<br><br>if I uneval. <br> <br>uneval(session.data.jobulousSurvey.Review.responses) // this is end up to be org.mozilla.javascript.NativeArray<br><br>1. why is this happening? <br>2. this doesn't work with session.data.jobulousSurvey.Review.toJSON()<br> <br>I don't really mind using a mozilla array, as long as I can use toJSON method on it.<br><br>Any recommendation or insight as why this is happening? Is this a bug? <br><br>Julian <br></div> ------=_Part_62369_27849677.1222839025510-- --===============1663156504== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Helma-user mailing list [email protected] http://helma.org/mailman/listinfo/helma-user --===============1663156504==--