JSONImporter.read_data#

JSONImporter.read_data(source, *, context=None)[source]

Read canonical graph data from a JSON file.

Parameters:
  • source (str | Path) – The JSON source path.

  • context (IOContext | None) – Optional import/export customisation.

Returns:

The decoded graph data.

Return type:

dict[str, Any]