Results now returned in JSON array format
Altered test.php