Be seen. Boost your question’s priority for more expert views and faster solutions
$.ajax({
type: "GET",
dataType: "json",
url: 'http://rest.smartdoc.se/api/users/' + username + '/' + password,
success: function (Data) {
var obj = $.parseJSON(Data);
alert(obj.FullName);
}
});
{"Data":[{"FullName":"Doesn't exist","username":"sdf","password":"sdf"}],"Errors":null}
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
From novice to tech pro — start learning today.
Open in new window
The Data returned contains a Data key, holding an array or people. If you are likely to be passing back more than one person then you'll need to loop through Data.Data