Skip to content

Please provide a method to deserialize and discard one object #3

Description

@joshtriplett

For resilient parsing of CBOR streams that may contain unknown objects, I'd love to have a Deserializer method that parses and discards one CBOR object, including any contained objects. For instance, if the next object is a definite array, it'll parse and discard len objects; if the next object is an indefinite map, it'll parse and discard pairs of objects until it parses and discards a Break. This makes it easy to, for instance, discard the value associated with an unknown key in a map, allowing for extensible objects.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions