feature: Add new interface as alternative to existing Marshaler
interface
#507
Labels
enhancement
New feature or request
Marshaler
interface
#507
Currently,
cbor.Marshaler
interface matchesjson.Marshaler
to make it easier for users familiar with encoding/json package.However, this also inherits the limitations from matching those interfaces, as already noted in comments and discussions at:
For example, the proposed new API for
encoding/json/v2
includesMarshalerV2
orMarshalerTo
, etc.Similarly for this library, a new alternative to
Marshaler
interface can address known limitations of the old API.The text was updated successfully, but these errors were encountered: