November 2017
Intermediate to advanced
420 pages
10h 29m
English
If you want more control over the marshalling and unmarshalling of objects, such as skipping some fields or renaming field names, you can use the Java Architecture for XML Binding (JAXB) annotations to indicate this to the runtime. Let's take a quick look at this feature.
JAXB allows Java developers to access and process the XML data without worrying about the XML structure of the content. JAXB offers annotations that map XML to the Java class and vice versa, letting you work on the Java objects. JAX-RS can automatically read and write both XML and JSON by using JAXB. Our discussions in this section are focused on using the JAXB annotation for managing ...