KeyTags

Specifies that a key (i.e. a property identifier) shall be tagged and serialized as CBOR major type 6: optional semantic tagging of other major types.

Example usage:

@Serializable
data class Data(
@KeyTags(34uL)
val b: Int = -1 // results in the CBOR equivalent of 34("b"): -1
)

See RFC 8949 3.4. Tagging of Items.

Properties

Link copied to clipboard