Getting ready

Let's add our dependencies to the project:

    <dependencies>        <dependency>            <groupId>org.eclipse</groupId>            <artifactId>yasson</artifactId>            <version>1.0</version>        </dependency>         <dependency>            <groupId>org.glassfish</groupId>            <artifactId>javax.json</artifactId>            <version>1.1</version>        </dependency>     </dependencies>

Get Java EE 8 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.