Oct 30, 2017

Fix: Restful web service: org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class can not instantiate from JSON object (need to add/enable type information?)

If you encounter:

org.codehaus.jackson.map.JsonMappingException: No suitable constructor found for type [simple type, class can not instantiate from JSON object (need to add/enable type information?)
One problem is that you need to check your constructor. And don't forget that you need a constructor without any parameter there. This constructor will be created by JVM by default if you don't have any constructor. You need to create it by yourself if you add other constructors.