public static String writeObjectAsString(Object object) throws IOException {
    return GSON.toJson(object);
  }
Utility class for converting objects to JSON
hbase-client/src/main/java/org/apache/hadoop/hbase/util/JsonMapper.java