MHCXGraph.app.write_master_json

MHCXGraph.app.write_master_json(export_data, output_dir, log)[source]

Write the raw dashboard payload as a standalone JSON file.

This is the same master_export structure the dashboard consumes (__GRAPH_DATA_JS_INJECTION__), so a dashboard can be regenerated from it later. Written when dashboard generation is disabled — or always, if you want the data decoupled from the HTML. Cheap: a single json.dump, no asset loading and no template string assembly.