I have an object, example:
var object = { name: "lalala", alert: function(){ alert(this.name)} }
I want send this to my server (nodejs+express) as a JSON, but I am getting this parser error, how I can do this?
JSON example:
{ "name": "lalala", "alert": "function"(){ "alert"("this.name") } }