_export
Export serialized population data to external formats.
export_humans_to_json(ser_pop, output_file)
Export human data to a JSON file, grouped by node.
Each key in the output JSON is "Node <external_id>" and the value
is the list of individual dicts from that node.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
ser_pop
|
SerializedPopulation
|
A loaded SerializedPopulation. |
required |
output_file
|
str | Path
|
Destination JSON file path. Parent directories are created if they do not exist. |
required |