FasterXML Jackson is a great tool for converting objects to/from POJOs.
Its a great tool when we know the structure of JSON beforehand. But what if we don’t know that? In that case we can use a Map<String, Object> to store the unknown objects. Below two links provide useful info:
Happy Coding :)