Skip to content

Return a default value from at_pointer when the key doesn't exist #105

@ELind77

Description

@ELind77

I'd like to request a feature to return a default value from at_pointer when the path doesn't exist rather than throwing a key error. This is especially important when parsing data with a mixed schema--e.g. application log/data that have changed schema over time.

Not throwing and catching the error could save significant time as Python error handling isn't especially performant and it would give users more flexibility to decide how to handle missing keys/values.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions