Easily get nested list and dictionary values
from nested_lookup import nested_lookup document = [ { 'taco' : 42 } , { 'salsa' : [ { 'burrito' : { 'taco' : 69 } } ] } ] print(nested_lookup('taco', document)) # [42, 69]
pypi github
Recommended Posts