2

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?

StackExchange User
  • 1,212
  • 14
  • 34
user2236580
  • 99
  • 2
  • 7

1 Answers1

0

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/

AlexR
  • 111,884
  • 15
  • 126
  • 200