Here you can find the source of unmarshal(final Class clazz, String json)
public static final synchronized Object unmarshal(final Class clazz, String json) throws JAXBException, IOException
//package com.java2s; //License from project: Open Source License import com.google.gson.Gson; import java.io.IOException; import javax.xml.bind.JAXBException; public class Main { public static final synchronized Object unmarshal(final Class clazz, String json) throws JAXBException, IOException { Gson gson = new Gson(); return gson.fromJson(json, clazz); }/*from ww w.j a v a 2 s.c om*/ }