Fix for issue #7 (Enable key lookup after the key is found)
This commit is contained in:
parent
395ee0185b
commit
de3630f0f3
3 changed files with 70 additions and 8 deletions
|
|
@ -27,7 +27,7 @@ def _nested_lookup(key, document, wild=False, with_keys=False):
|
|||
yield k, v
|
||||
else:
|
||||
yield v
|
||||
elif isinstance(v, dict):
|
||||
if isinstance(v, dict):
|
||||
for result in _nested_lookup(key, v, wild=wild, with_keys=with_keys):
|
||||
yield result
|
||||
elif isinstance(v, list):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue