AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
How to Use Generics to Serialize JSON
I wanted to go over back to the generic part because you made very particular about generics, right? Now generics is just difficult to handle when using like the serializable for JSON serializable or because it doesn't seem too tricky necessarily. I mean, maybe you can shed some light on that.Yeah, so the thing is with generics there are certain limitations that just, you won't get to work or at least like you have to find workarounds or like be very, it's quite complicated. So the one thing that is pretty much impossible is when you have a generic function and you pass a generic parameter. That could either be directly just the class, like decode animal