Jsonb jsonb = JsonbBuilder.create();
Person person = new Person("John", 25, "john@example.com");
String json = jsonb.toJson(person);
System.out.println(json);
String json = "{\"name\":\"John\",\"age\":25,\"email\":\"john@example.com\"}";
Person person = jsonb.fromJson(json, Person.class);
System.out.println(person.getName());
JsonbConfig config = new JsonbConfig().withDateFormat("yyyy-MM-dd", Locale.US);
Jsonb jsonb = JsonbBuilder.create(config);