Mapping REST API to Plain Java Objects (POJOs)
Sometimes you want to connect to a REST API from a Java application. There are several approaches to it, from parsing raw JSON content to model the classes in Java with all possible details. In this post, I describe how to solve this in a practical manner, especially the fact of not having the JSON schema for the data that you’re retrieving from the REST API. How can we map this structure to Java Objects with almost no effort? I use as an example the SonarQube API, given that is the one employed in another post on this blog.Read More →