title: How to parse javascript variable in Java
body: <p>The page contains the JavaScript code:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          var myVar = new cinema({json_structure}); 
      });
  </code></pre>
  
  <p>I got this JavaScript code using Jsoup library:</p>
  
  <pre><code>Document doc = Jsoup.connect("http://example.com").timeout(0).get();    
  Element script = doc.select("script").get(6);
  </code></pre>
  
  <p>How can I parse "json_structure"?</p>
  
  <p>Thanks.</p>