@Override
  public JsonElement serialize(byte[] src, Type typeOfSrc, JsonSerializationContext context) {
    return new JsonPrimitive(Bytes.toString(src));
  }
Serialize a {@code byte[]} using {@link Bytes#toString()}.
hbase-http/src/main/java/org/apache/hadoop/hbase/http/gson/ByteArraySerializer.java