pypath.inputs.common.json_extract§

pypath.inputs.common.json_extract(data: dict | list | str | IO, spec: dict) List[dict][source]§

Extracts fields of arbitrary depth from JSON data into a list of dicts.

Args

data: JSON as a string or a file-like object. spec: Dict of glom field specifications.