We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When using slices without missing data it works perfectly:
data = dotty( { "users": [ {"first_name": "Sam", "last_name": "Gamji"}, {"first_name": "John", "last_name": "Doe"}, {"first_name": ""} ] } ) data.get("users.*.first_name") #== ["Sam", "John", ""]
But with one missing item in the subset it returns just None:
None
data = dotty( { "users": [ {"first_name": "Sam", "last_name": "Gamji"}, {"last_name": "Doe"}, {"first_name": ""} ] } ) data.get("users.*.first_name") #== None
I would expect to get:
data.get("users.*.first_name") #== ["Sam", None, ""]
Is it wanted ? Is it a bug ?
It would be really nice to have this behaviour ! Thanks 🙏 .
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When using slices without missing data it works perfectly:
But with one missing item in the subset it returns just
None
:I would expect to get:
Is it wanted ? Is it a bug ?
It would be really nice to have this behaviour !
Thanks 🙏 .
The text was updated successfully, but these errors were encountered: