I have XMLHttpRequest() function given below
XMLHttpRequest()
var searchFriendRequests = function (userid) { var xhr = new XMLHttpRequest(); xhr.open(\'G
var jsonResponse = JSON.parse(xhr.responseText); console.log(jsonResponse);