Why the REST API is ignoring attributes with null values in the JSON Response?

Solution Verified - Updated -

Issue

We have to upgrade JBoss EAP 6.1 to EAP 7.2.0 and RestEasy version from 1.2.1 GA to 3.6.1, and JAXRS 2.1. We observed that the RES API responses ignore attributes with a null value and return only with the attributes which are not null in the JSON response post-migration. We are expecting to return all the attributes (null and Not_null) in the JSON response.

Environment

Red Hat JBoss Enterprise Application Platform (EAP) 7.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