How to flatten a nested JSON recursively, with flatten_json

This question is specific to using flatten_json from GitHub Repo: flatten The package is on pypi flatten-json 0.1.7 and can be installed with pip install flatten-json This question is specific to the following component of the package: def flatten_json(nested_json: dict, exclude: list=[”], sep: str=’_’) -> dict: “”” Flatten a list of nested dicts. “”” out … Read more

recursive iteration through nested json for specific key in python

I’m trying to pull nested values from a json file. I want to print out each of the values for every “id” key. I think I’m close but can’t figure out why the obj type changes from a dict to a list, and then why I’m unable to parse that list.
Here is a link to the json I’m working with: http://hastebin.com/ratevimixa.tex