@Override
    public T deserialize(byte[] bytes) throws SerializationException {
        if (bytes == null || bytes.length == 0) {
            return null;
        }
        try {
            return JSON.parseObject(bytes, type, fastJsonConfig.getFeatures());
        } catch (Exception ex) {
            throw new SerializationException("Could not deserialize: " + ex.getMessage(), ex);
        }
    }
Fastjson for Spring Data Redis Serializer.
<p>
Compatible fastjson 1.2.x

@author lihengming
@author Victor.Zxy
@see RedisSerializer
@since 2.0.2
fastjson1-compatible/src/main/java/com/alibaba/fastjson/support/spring/FastJsonRedisSerializer.java