I have got a simple JSON as shown below
{
"result": "success"
}
I am trying to read the key named result
I have tried it this way
var json = {"result":"success"}
var ajaxres = JSON.parse(json);
console.log(ajaxres.resut);
console.log(json.resut);
But i am getting undefined