How to efficiently map a org.json.JSONObject to a POJO?

Since you have an abstract representation of some JSON data (an org.json.JSONObject object) and you’re planning to use the Jackson library – that has its own abstract representation of JSON data (com.fasterxml.jackson.databind.JsonNode) – then a conversion from one representation to the other would save you from the parse-serialize-parse process. So, instead of using the readValue … Read more