Agent-Hellboy / trace-dkey

Python library to trace path of a particular key inside a nested dict
MIT License
7 stars 5 forks source link

Resume resursion call only if value of a particular key is list of dict not list of string or some other types. #10

Closed Agent-Hellboy closed 1 year ago

Agent-Hellboy commented 1 year ago

Here is one of the examples from the Jira API response out = resp['fields']['labels'] = ['regression'] we are iterating over this list to fetch a key.

we need an extra check in this branch https://github.com/Agent-Hellboy/trace-dkey/blob/main/src/trace_dkey/__init__.py#L37