nispace.io.write_json

nispace.io.write_json(json_dict, json_path)[source]

Write a dict to a JSON file (pretty-printed, indent=4).

Parameters:
  • json_dict (dict) – Dictionary to serialize.

  • json_path (str or os.PathLike) – Destination file path.

Returns:

The resolved destination path.

Return type:

Path