If an object implements this interface, this method will be used to
serialize the object when encoding. Return undefined if you don't want
any further serialization to take place. Return an array of [tag, value]
if you would like default serialization, where if tag is not NaN, a
CBOR tag will be written before the value.
If an object implements this interface, this method will be used to serialize the object when encoding. Return undefined if you don't want any further serialization to take place. Return an array of [tag, value] if you would like default serialization, where if tag is not NaN, a CBOR tag will be written before the value.