public static String writeMapAsString(Map<String, Object> map) throws IOException {
    return writeObjectAsString(map);
  }
Utility class for converting objects to JSON
hbase-client/src/main/java/org/apache/hadoop/hbase/util/JsonMapper.java