load_json

load_json(key, *subkeys, name, json_load_kwargs=None)[source]

Open a JSON file json.

Parameters:
  • key (str) – The module name

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

  • name (str) – The name of the file to open

  • json_load_kwargs (Optional[Mapping[str, Any]]) – Keyword arguments to pass through to json.load().

Return type:

Any

Returns:

A JSON object (list, dict, etc.)