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
Here is my approach with the spread operator (...) :
const obj = { name:"hello", age:42, id:"3942" }; const objWithoutId = { ...o, id: undefined } const jsonWithoutId = JSON.stringify({...o, id:undefined});