JSONExporter.write_data#

JSONExporter.write_data(data, target, *, context=None)[source]

Write canonical graph data to a JSON file.

Parameters:
  • data (dict[str, Any]) – The graph data to write.

  • target (str | Path) – The target JSON path.

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

Return type:

None