I have XMLHttpRequest() function given below
XMLHttpRequest()
var searchFriendRequests = function (userid) { var xhr = new XMLHttpRequest(); xhr.open(\'G
You first need to parse responseText in JSON, for this you should use JSON.parse(). Then you can access it using key.
var json = JSON.parse(xhr.responseText); var yourData = json.Data; // or json["Data"]