When using Confluence Cloud REST API, how do you generate and parse JSON using java?

How to I deserialize the json object returned from the REST API ?