Here you can find the source of deserialize(final Class clazz, final String json)
public static final Object deserialize(final Class clazz, final String json) throws JAXBException, IOException
//package com.java2s; //License from project: Open Source License import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; import javax.xml.bind.JAXBException; public class Main { public static final Object deserialize(final Class clazz, final String json) throws JAXBException, IOException { ObjectMapper mapper = new ObjectMapper(); Object object = mapper.readValue(json, clazz); return object; }// w w w .j av a 2 s . c om }