Class EnumSerializer

    • Constructor Detail

      • EnumSerializer

        public EnumSerializer()
      • EnumSerializer

        public EnumSerializer​(Member member)
    • Method Detail

      • write

        public void write​(JSONSerializer serializer,
                          Object object,
                          Object fieldName,
                          Type fieldType,
                          int features)
                   throws IOException
        Description copied from interface: ObjectSerializer
        fastjson invokes this call-back method during serialization when it encounters a field of the specified type.
        Specified by:
        write in interface ObjectSerializer
        object - src the object that needs to be converted to Json.
        fieldName - parent object field name
        fieldType - parent object field type
        features - parent object field serializer features
        Throws:
        IOException