docs: public static final byte[] serializeToBytes(final Object object) {
      if (object == null)
        throw new IllegalArgumentException("Object was null");
      try {
        return jsonMapper.writeValueAsBytes(object);
      } catch (JsonProcessingException e) {
        throw new JSONException(e);
      }
    }