Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pojo to json
public class SomeJsonTest {
public void getJsonFromPojo(){
SomethingDao somethingDao = new SomethingDao();
//setConfiguration/ setVertx left out
CompletableFuture<JsonObject> jsonFuture = somethingDao
.fetchOneBySomeidAsync(1)
.thenApply(ISomething::toJson);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment