Fetch a JSON file with XMLHttpRequest

Content written as an JSON array will be converted into a JavaScript array.