[Updated] Polymorphic Requests with Jackson

While building a generalized API, you may come across scenarios where the structure of the incoming request can change based on certain characteristics. In Java, such scenarios are handled with polymorphism which involves introducing an interface to represent multiple types. In this post, we’ll explore how to handle polymorphic requests using Jackson , a popular data-processing library for Java.…