Get data as JSON from a PHP file, and convert it into a JavaScript array.