Nashorn: Javascript to Java call question
Mani Sarkar
sadhak001 at gmail.com
Wed Jun 5 11:50:58 PDT 2013
Hi,
I have another query regarding the example (see
https://github.com/neomatrix369/NashornHackDay/blob/master/examples/JSON_in_JS_and_Java/JSJSONInJava.java)
created sometime back during the Nashorn hackday. When I bring a JS object
created in Nashorn into Java I'm not able to access the object directly,
how do I access it like a normal java object.
If its a raw / primitive type then the contents are accessible (you can see
the value) while for JS object, when I say
*System.out.println(JSObjectFromNashorn);*
I get the below output
*[object object]*
The full implementation of what I'm talking about can be found at the above
link.
Regards,
mani
--
*Twitter:* @theNeomatrix369 *Blog:*
http://neomatrix369.wordpress.com
*JUG activity:* LJC Advocate (@adoptopenjdk & @adoptajsr programs)
*Meet-a-Project:* https://github.com/MutabilityDetector
*Bitbucket:* https://bitbucket.org/neomatrix369 * **Github:* https://github
.com/neomatrix369
*LinkedIn:* http://uk.linkedin.com/pub/mani-sarkar/71/a77/39b
*Devoxx UK 2013* was a grand success:
http://www.devoxx.com/display/UK13/Home
*Don't chase success, rather aim for "Excellence", and success will come
chasing after you!*
More information about the nashorn-dev
mailing list