Damus
ARGVMI~1.PIF profile picture
ARGVMI~1.PIF
I solved the problem by moving JsonAnySetter to a method that checks if the “unknown” property is actually one of the subobjects' properties, and if so, discards it.

That seems to work, but it's kind of brittle. 😬 I'm not sure what I would do if this was Rust. Some equally brittle thing involving traits, I guess.