I've tried this so far and it always returns "null"
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);
Any suggestions ?