How does Ajax obtain a JSON response?
In order to use AJAX to retrieve the JSON data from a response, we must first take into account a JSON file. The next step is to construct an HTML file with a table that we will use to populate with the information we receive from the response. In order to build the JavaScript code for retrieving JSON data, we will create a file with the same name.