code: @Override
      public byte[] toBytes(Object obj, ClassLoader classLoader) throws SerializationException {
          String json = SerializationUtils.toJsonString(obj, classLoader);
          return json != null ? json.getBytes(StandardCharsets.UTF_8) : null;
      }
docs: {@inheritDoc}