This recipe will show you how you can use the power of the Jakarta JSON Binding API to give some flexibility to your data representation and help to transform your objects into JSON messages.
Easing data and objects representation with Jakarta JSON Binding
Getting ready
Start by adding the Jakarta EE dependency:
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>8.0</version>
<scope>provided</scope>
</dependency>
How to do it...
Perform the following steps to try this...