Why Jacksons annotation are being ignored in a JAX-RS resources deployed in EAP 6?

Solution Verified - Updated -

Issue

  • We would like to create a different representation of our object by the use of JsonView annotation, however looks like it has no effect when using it with JAX-RS resources deployed into EAP. What can we do to have our JSONview working?
  • We use annotations from Jackson to configure the JSON output such as @JsonIgnore in my Bean objects and it is ignored.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.