I makinn an AJAX call that returns a JSON string. The JSON is either {"status":"success"}
or {"status":"error"}.
I want to read the status JSON variable. I tried multiple ways but I wasn't able to get that. As of now I am able to log the string into console.
success: function(data){
console.log("embedded success");
var jsondata = JSON.parse(data);
console.log(jsondata);
}