Here you can find the source of deserialize(String json, Class
public static <T> T deserialize(String json, Class<T> clazz)
//package com.java2s; //License from project: Open Source License import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; public class Main { private static final ObjectMapper objectMapper = new ObjectMapper(); public static <T> T deserialize(String json, Class<T> clazz) { try {//from w ww. j a va 2 s .com return objectMapper.readValue(json, clazz); } catch (IOException e) { e.printStackTrace(); return null; } } }