How can one configure EAP 6 to ignore unknown JSON fields in a JAX-RS resource?

Solution Verified - Updated -

Issue

We have a REST web service (a JAX-RS resource) that receives content of media type application/json and uses Jackson as the JSON provider. When the posted JSON contains unknown fields, we receive a 400 error from server. How can we configure our application to ignore these fields?

Environment

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

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content