0

I have an abstract base class which has over 100 implementations. It's too tedious to add @JsonCreator to all the classes.

Is there a way to do this programmatically? The parent class has a two-argument constructor.

abstract BaseClass {

    BaseClass(A a, B b) {

    }
}
  • 1
    Look at this link: https://stackoverflow.com/questions/55533093/convert-json-string-to-json-objects/55533405#55533405 Hope this will help. – Pawan Tiwari Mar 17 '21 at 09:28
  • Please provide sample JSON and maybe one or two BaseClass implementation. It's not clear what are you trying to achieve – Nikolai Shevchenko Mar 17 '21 at 13:06

0 Answers0