code: protected byte[] jsonSerialize(Object o) {
          byte[] res = null;
          try {
              res = JsonUtils.toJson(o).getBytes("utf-8");
          } catch (UnsupportedEncodingException e) {
              logger.error("JsonSerialize object fail ", e);
          }
          return res;
      }
docs: Get the bytes representing the given serialized object.