Annotation Type JSONField

    • Element Detail

      • ordinal

        int ordinal
        The order of the fields during serialization and output in ascending order
        Default:
        0
      • name

        String name
        Specify the String as the key name in JSON
        Default:
        ""
      • format

        String format
        If the field is Date, then please define the date format
        Default:
        ""
      • serialize

        boolean serialize
        Whether the field is serialized during serialization, default ture
        Default:
        true
      • deserialize

        boolean deserialize
        Whether the field is deserialized during deserialization, default ture
        Default:
        true
      • unwrapped

        boolean unwrapped
        If true, serialize and deserialize the field's internal properties
        Default:
        false
      • alternateNames

        String[] alternateNames
        Using multiple different field names when deserializing
        Default:
        {}
      • serializeUsing

        Class serializeUsing
        Specifies that ObjectWriter is used when serializing
        Default:
        java.lang.Void.class
      • deserializeUsing

        Class deserializeUsing
        Specifies that ObjectReader is used when deserializing
        Default:
        java.lang.Void.class
      • value

        boolean value
        Default:
        false
      • defaultValue

        String defaultValue
        Since:
        1.2.61
        Default:
        ""
      • locale

        String locale
        Default:
        ""
      • schema

        String schema
        Default:
        ""
      • jsonDirect

        boolean jsonDirect
        Default:
        false
      • required

        boolean required
        Property that indicates whether a value (which may be explicit null) is expected for property during deserialization or not. If expected, ObjectReader should indicate this as a validity problem (usually by throwing an exception, but this may be sent via problem handlers that can try to rectify the problem, for example, by supplying a default value).
        Since:
        2.0.20
        Default:
        false
      • arrayToMapKey

        String arrayToMapKey
        Since:
        2.0.52
        Default:
        ""
      • arrayToMapDuplicateHandler

        Class<?> arrayToMapDuplicateHandler
        Since:
        2.0.52
        Default:
        java.lang.Void.class