I am looking for some help with parsing JavaScript variables and arrays from a .js file from the web. Something like Jsoup except it parses JavaScript rather than HTML. Any suggestions on how I could manage something like this?
-
How about posting what you want and what you have. Another tip, sscce.org :)Menno– Menno2013-04-13 18:16:30 +00:00Commented Apr 13, 2013 at 18:16
-
SO is not a discussion board nor a search engine, so that we do not discuss or recomend software solutions here.Tomáš Zato– Tomáš Zato2013-04-13 18:18:03 +00:00Commented Apr 13, 2013 at 18:18
Add a comment
|
1 Answer
Starting from Java 1.6 JavaScript parser Rhino is a part of JDK.
Take a look on the official tutorial from Oracle: http://docs.oracle.com/javase/6/docs/technotes/guides/scripting/programmer_guide/
1 Comment
user2236580
Thanks, I wasn't sure if Rhino was what I wanted.