The following code:
class A {
    get p1(): number {
        return 1;
    }
    get p2(): number {
        return 2;
    }
}
const a = new A();
console.log(JSON.stringify(a));
Produces the following output:
{}
Is there a way to get something like the following?:
{
   "p1": 1,
   "p2": 2
}
