Here you can find the source of jsonToPojo(String jsonData, Class
public static <T> T jsonToPojo(String jsonData, Class<T> beanType)
//package com.java2s; import com.fasterxml.jackson.databind.ObjectMapper; public class Main { private static final ObjectMapper MAPPER = new ObjectMapper(); public static <T> T jsonToPojo(String jsonData, Class<T> beanType) { try {// w w w. ja v a 2 s . c o m T t = MAPPER.readValue(jsonData, beanType); return t; } catch (Exception e) { e.printStackTrace(); } return null; } }