Is it possible to convert JSON to Java bean interface that has interfaces as attributes? I have one implementation of every interface and these can be directly mapped to interfaces.
Example:
public interface MyMainClass {
public MyInterfaceClass1 getMyInterfaceClass1();
}
The answer is, use@JsonDeserialize(as=YourImpl.class), see Jackson JSON, Immutable Classes, and Interfaces.registerTypeAdapter(Node.class, new NodeDeserializer())and Deserializing an abstract class in Gson