Is it possible to exclude certain fields from being included in the json string?
Here is some pseudo code
var x = { x:0, y:0, divID:\"xyz
You can use native function defineProperty from Object:
var data = {a: 10}; Object.defineProperty(data, 'transient', {value: 'static', writable: true}); data.transient = 'dasda'; console.log(JSON.stringify(data)); //{"a":10}