I want to get the data from the webservice using angular js. pls help.. .
$http(
{
url: "xxx.asmx/GetLogin",
method: "GET",
params: { username: "admin", password: "admin" }
}
).success(function (res) { alert(res); });
I get the result like this:
<?xml version="1.0" encoding="utf-8"?><string xmlns="xxxx">[{"UserID":2,"UserName":"Admin","UserType":1,"Password":"admin","Company":1,"CreatedDate":"\/Date(1411151400000)\/"}]</string>
How can i get the UserName and UserID from this string?