Make ajax request to get the json data.