When RESTeasy marshals a POJO in XML, it by default skips null values: See. The Jaxb marker always writes xsi: nil (even if @XmlElement (required = false, nillable = true)) .
However, when marshaling to JSON, null properties are included. Is there a way to make the JSON output match the XML output file?
To ensure that null values ββare not included in JSON, the following annotation can be used in a getter or public variable declaration: @JsonSerialize (include = Inclusion.NON_NULL)
Source: https://habr.com/ru/post/1379078/More articles:How to get a request from the parent page? - javascriptIframe source url - javascriptHow to implement Android Open Accessory mode as a service? - androidjQuery AJAX how to use an array of objects? - jsonPassing data from PHP to JavaScript - javascriptHow to stop the process launched by run.exec () in android - androidProper use of the notation do - haskellAndroid Proguard Compatibility Library - java.NET BackGroundWorker - InvalidOperationException: Cross-thread operation invalid - multithreadingJQuery FullCalendar changes editable properties of a specific event in a calendar - jqueryAll Articles