public byte[] serialize(Object object) throws SerializationException {
        if (object == null) {
            return new byte[0];
        }
        try {
            return JSON.toJSONBytes(object, SerializerFeature.WriteClassName);
        } catch (Exception ex) {
            throw new SerializationException("Could not serialize: " + ex.getMessage(), ex);
        }
    }
{@link RedisSerializer} FastJson Generic Impl
@author lihengming
@since 1.2.36
src/main/java/com/alibaba/fastjson/support/spring/GenericFastJsonRedisSerializer.java