window.JSON doesn’t support Principals, and I’m wondering if anyone has taken it upon themselves to patch that, write a new serializer, or otherwise come up with a good solution!
A quick search didn’t turn anything up, so apologies if this is a duplicate.
I’m sure they do, yeah. For some context, I’m storing things in local storage and finding Principals revived from that store no longer behave correctly. Luckily the JSON base de/serialize methods provide an API to customize behaviour. Working on a little something rn. Thanks Paul!