Whenever there's a mismatch between the names of properties/fields in a JSON String and a POJO - you can deal with the mismatch by not deserializing them or by "adapting" which JSON fields are mapped to which object fields. 2 Answers Sorted by: 1 We can make T with upper-bound to help infering object type. I'm sort of new to. In this article, we'll convert a JSON array into a Java Array and Java List using Jackson. (with no additional restrictions). You can rate examples to help us improve the quality of examples. I think you can also see this question: If you don't mind please mark my answer which got most of the points as a valid one. Entrepreneur, Software and Machine Learning Engineer, with a deep fascination towards the application of Computation and Deep Learning in Life Sciences (Bioinformatics, Drug Discovery, Genomics), Neuroscience (Computational Neuroscience), robotics and BCIs. Since version 2.11 (Apr 2020) Jackson has readerForListOf method (documentation): You need to annotate your class with @JsonDeserialize(using = MessageDeserializer.class) and implement custom deserializer: @see examples here: How Do I Write a Jackson JSON Serializer & Deserializer? Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, The future of collective knowledge sharing, Thanks. I assume you just want to be able to map arbitrary classes using a utility class? The readValue() method of the ObjectMapper class can also be used to read byte arrays: If you have JSON data as a byte array (byte[]), you'll map it just as you would usually: Reading data from a JSON array and converting it to an array or list of Java objects is another use case - you don't only search for single resources. Are arguments that Reason is circular themselves circular and/or self refuting? OkI already tried to solve it like this but the problem is that th json message has other fields in addition to the list. Here's example test case tested on Jackson 2.11.0: Hence getting the exception no suitable constructor found for type. Connect and share knowledge within a single location that is structured and easy to search. Can I use the door leading from Vatican museum to St. Peter's Basilica? See edits to answer. Browse other questions tagged, Where developers & technologists share private knowledge with coworkers, Reach developers & technologists worldwide, The future of collective knowledge sharing, New! how to use Jackson ObjectMapper.readValue with generic class, someone says that need JavaType, but JavaType is also splicing other class is Jackson can use like gson TypeToken? To what degree of precision are atoms electrically neutral? This answer worked for me: Java 11, Jackson 2.10.5. How to pass the proper object to mapper.readValue () just because a third party added a property that might not be relevant to you. Control the behavior of the serialization process when no accessors are found for a particular type. If you want to dig deeper and learn other cool things you can do with the Jackson 2 - head on over to the main Jackson tutorial. Without type bounduary, RestResponse equals to RestResponse