public static <T> T fromJson(String json, Class<T> clazz) {
    return GSON.fromJson(json, clazz);
  }
Utility class for converting objects to JSON
hbase-client/src/main/java/org/apache/hadoop/hbase/util/JsonMapper.java