Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
ELind77 opened this issue Feb 3, 2023 · 1 comment
Closed

Comments

@ELind77
Copy link

ELind77 commented Feb 3, 2023

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.

@TkTech
Copy link
Owner

TkTech commented Sep 4, 2023

Completed in #110.

@TkTech TkTech closed this as completed Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants