With JSON binding, it can be thought of as similar to JAXB. While we do have JSON-P, it's a specification that can be considered for parsing and writing JSON files. But when you need JSON to be mapped to Java objects, JSON-P falls short and thus we have JSON-B to fill this gap. The JSON-B, being a new addition to the Java EE 8 family of specifications, has the version 1.0. Yasson project is the reference implementation for JSON-B. For maven projects, the following dependency can be specified, which relies upon the server for providing the implementation:
<dependency>
<groupId>javax.json.bind</groupId>
<artifactId>javax.json.bind-api</artifactId>
<version>1.0</version>
<scope>provided</scope>
</dependency>
The main class to get started with JSON-B is the Jsonb class. To obtain an instance of...