jackson can only instantiate non-static inner class by using default, no-argument constructor code example
Example: jackson can only instantiate non-static inner class by using default, no-argument constructor
// Just add static keyword to the inner class
class ExampleClass {
static class InnerClass {
public int getCount() {
return 42;
}
}
}