News for hackers. Stuff that matters.
Re:The Serde Rust Framework by Jweb_Guru on Friday October 15, 2021 @02:10AM (#28874837)
I don't believe it's fixable at all if you're using someone's third-party library that wasn't designed for GSON (unless something has changed a lot since I last used it). The annotation has to be stuck on the original field, AFAIK. And similar stuff apply to other invariants on the type. I believe these kinds of issues are somewhat fundamental when you decide you're going to start (de)serializing structures that never thought about whether or how they'd like that to happen.
Re:The Serde Rust Framework by unnah on Friday October 15, 2021 @09:24AM (#28877424)
In Jackson, you can use mixin classes to define annotations for 3rd party libraries.