I'm pretty much new to jquery, i'm trying to read an JSON object.
My Jquery ajax call
$(document).ready(function () {
var resource = "v1/projects";
var url = '@Url.Action("Proxy")?resource=' + resource;
var method = 'GET';
var settings = {
dataType: "text",
type: method,
success: function (data, textStatus, jqXHR) {
var res= JSON.stringify(data);
for (var k in res) {
alert(res)
}
},
error: function (jqXHR, textStatus) {
alert("error");
}
};
$.ajax(url, settings);
});
Ajax call works fine and i receive the following result.

I need to extract name and description from the result.
I tried using the for loop but it prints all the elements in the result