I have a very basic ajax call to alert the data that was reported from the server
$.ajax({ type: \"POST\", url: \"/someform/act\", //edit utl t
alert() prints the string representation of the arguments - hence if you pass an object, you'll get [object Object].
alert()
[object Object]
To inspect data, use console.log(data) better.
console.log(data)