$.ajax({
url: "apex/demopage",
success: function(resp) {
}
})
//and my resp coming as follows
[
{
"attributes": {
"type": "something",
"url": "something"
},
"fname": "something",
"lname": "something"
},
{
"attributes": {
"type": "something",
"url": "something"
},
"fname": "something",
"lname": "something"
}
]