String json = "{\"name\":\"John\",\"age\":30,\"city\":\"New York\"}";
JsonObject jsonObject = JsonParser.object().from(json);
String name = jsonObject.value("name").asString();
int age = jsonObject.value("age").asInt();
String city = jsonObject.value("city").asString();
JsonObject jsonObject = new JsonObject()
.put("name", "John")
.put("age", 30)
.put("city", "New York");
String json = jsonObject.toString();
JsonObject jsonObject = new JsonObject()
.put("name", "John")
.put("age", 30)
.put("city", "New York");
jsonObject = jsonObject
.put("name", "Jane")
.put("country", "USA")
.remove("age");
String json = jsonObject.toString();