Alert Json object
You can access a JSON objects properties using the dot
operator:
var person {
"name":"test",
"age":20
}
//document.write(person.name);
alert(person.name);
Use console.log instead
Just use
alert(JSON.stringify(your_json_obj));