Jersey, the reference implementation for JAX-RS (JSR 311) included in
GlassFish Server, provides support for binding JSON data from RESTful
resource methods to Java objects using JAXB, as described in
Using JAX-RS with JAXB in
Chapter 34, "JAX-RS: Advanced Topics and
an Example". However, JSON support is not part of JAX-RS (JSR 311) or
JAXB (JSR 222), so that procedure may not work for Java EE
implementations other than GlassFish Server.
The Java API for JSON Processing (JSR 374) does not explicitly support
JSON binding in Java. A future JSR (JSON Binding) that is similar to
JAXB for XML is under consideration for a future release of Java EE.
You can still use the Java API for JSON Processing with JAX-RS resource
methods. For more information, see the sample code for JSON Processing
included with the Java EE 8 SDK.