title: How do I get the JSON response (as string) after executing javascript with webdriver ?
body: <p>I've tried this so far and it always returns "null"</p>
  
  <pre><code>    WebDriver driver = new FirefoxDriver();
  
  
      driver.get("http://localhost/index.php");
  
  
      driver.manage().timeouts().implicitlyWait(25, TimeUnit.SECONDS);
  
      Object response = ((JavascriptExecutor) driver).executeScript("Debug.gameControls.debugSpinStart({\"positions\":[16,27,25,19,26],\"reelsIndex\":0});$.getJSON");
  
      System.out.println(response); 
  </code></pre>
  
  <p>Any suggestions ? </p>