encodeObjectTags

Parameters

encodeObjectTags

Specifies whether tags set using the ObjectTags annotation should be written. When this switch is set to true , it is possible to directly declare classes to always be tagged. This then applies to isolated objects of such a tagged class being serialized and to objects of such a class used as values in a list, but also or when they are used as a property in another class. Forcing objects to always be tagged in such a manner is accomplished by the ObjectTags annotation, which works just as ValueTags, but for class definitions. When serializing, object tags will always be encoded directly before to the data of the tagged object, i.e. a value-tagged property of an object-tagged type will have the value tags preceding the object tags. Well-known tags are specified in CborTag. See RFC 8949 Tagging of Items for more info.