load_json

load_json(key: str, *subkeys: str, name: str, json_load_kwargs: Mapping[str, Any] | None = None) Any[source]

Open a JSON file json.

Parameters:
  • key – The module name

  • subkeys – A sequence of additional strings to join. If none are given, returns the directory for this module.

  • name – The name of the file to open

  • json_load_kwargs – Keyword arguments to pass through to json.load().

Returns:

A JSON object (list, dict, etc.)