Object.defineProperty on a prototype prevents JSON.stringify from serializing it Object.defineProperty on a prototype prevents JSON.stringify from serializing it typescript typescript