Showing posts with the label Jackson

Jackson – Convert JSON Array of Objects to List

Hello everyone, Here we will show how to convert JSON array String to List The Jackson library is composed of three components: Jackson Databind, Core, and Annotation. Jackson Databind has internal dependencies on Jackson Core and Annotation. Therefore, adding Jackson Databind to your Maven POM dependency /Gradle list will include the other dependencies as well. Maven (pom.xml)   <dependency> <groupId> com.fasterxml.jackson.core </groupId> <artifactId> jackson-databind </artifactId> <version> 2.9.8 </version> </dependency> Gradle (build.gradle)   implementation group: 'com.fasterxml.jackson.core' , name: 'jackson-core' , version: '2.13.2' JSON Array of Objects [ { "name" : "knowledgefactory1" , "salaray" : 1000 }, { "name" : "knowledgefactory2" , "salaray" : 1200 } ] Create an object to m