Here you can find the source of deserialize(String jsonData, Class
public static <T> T deserialize(String jsonData, Class<T> typeOfT) throws IOException
//package com.java2s; //License from project: Open Source License import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; public class Main { public static <T> T deserialize(String jsonData, Class<T> typeOfT) throws IOException { if (jsonData == null) { return null; }/* w w w . j ava 2s .c o m*/ ObjectMapper mapper = new ObjectMapper(); return mapper.readValue(jsonData, typeOfT); } }