This will help:
var x = { asd: "asd", };
try {
JSON.parse(x);
}
catch (e) {
console.log("Error", e.stack);
console.log("Error", e.name);
console.log("Error", e.message);
}
error.stack is not exactly what you want, but it will help you.