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
abstract class Hideable { public hidden = []; public toJSON() { var result = {}; for (var x in this) { if(x == "hidden") continue; if (this.hidden.indexOf(x) === -1) { result[x] = this[x]; } } return result; }; }