json_emission_zone.hpp file
JSON serialization for EmissionZone (+ legacy-singular fold).
Accepts two equivalent shapes for the pollutant list:
- Canonical multi-pollutant form (PLEXOS / GHG-basket): "emissions": [ {"emission": "co2", "weight": 1.0}, {"emission": "ch4", "weight": 27.9} ]
- Legacy single-pollutant shortcut: "emission": "co2" (auto-folded to a one-element
emissionslist with weight 1.0 byEmissionZoneConstructorbelow — same migration idiom we used forCapacityProfile's legacy keys.)