Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Models Jackson Exporter 1.0.6
-
None
Description
If there is a model class which looks like this:
@Model(adaptable = SlingHttpServletRequest.class, resourceType = "something") @Exporter(name = "jackson", extensions = "json") public class Foo extends AbstractResource { .... }
Then attempts to export this resource will always use the default Resource serialization and not use the "bean" serialization technique used by Jackson. This is because Jackson will first find the ResourceSerializer based on the Resource interface before constructing a BeanSerializer. The serializer lookup logic should be customized to skip any class with the @Model annotation.