@polyphonic unfortunately this is a unit test for deserializing json so it would sort of defeat the point
Hmm, I'm not entirely sure why you couldn't use one deserializer to validate the results of another, but you know the requirements best.
And my way is a sketchy, lazy hack even in the best of times.
Anyway, sorry you had to write all that. I had similar deserialization issues with a polymorphic collection of classes last week that kept matching to the wrong types. Took a few tries to get right. No fun.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!