package com.sonic.common.utils;

import com.alibaba.fastjson.serializer.SerializerFeature;

/**
 * @author code
 */
public class FastjsonUtils {
    public final static SerializerFeature[] SERIALIZER_FEATURES = {
            SerializerFeature.WriteMapNullValue,
            // List字段如果为null,输出为[],而非null
            SerializerFeature.WriteNullListAsEmpty,
            // 用枚举name()输出
            SerializerFeature.WriteEnumUsingName,
            // 类中的Get方法对应的Field是transient
            SerializerFeature.SkipTransientField,
            // 关闭循环引用检查
            SerializerFeature.DisableCircularReferenceDetect
    };

}
