I have Json file with below information.
successalert({
"School_name": "Convent",
"Class":"12th"
});
Here "successalert" returning function name.I am calling this file from jquery.This is running but I want to fetch data "convent" and "12th" in my JavaScript.
when i am writing code like
function successalert(data){
for(var n in data)
alert(n.method+"");
}
This is giving "undefined" result in alert box. Thanks