Could someone assist me with understanding the following json data?
{
"Message":"The request is invalid.",
"ModelState":{
"model.ConfirmPassword":["The password and confirmation password do not match.","The password and confirmation password do not match."]
}
}
I have attempted the following code (resulting in a non-empty response with all necessary values)
function(result)
{
var test=result.responseText;
var test1=test.Message;
var test2=test[0];
var test3=test["Message"];
}
The first test retrieves all the JSON data, but I specifically need only the "Message" field and then others. Please provide guidance as I am struggling to extract the "Message" information correctly.