gtopt/json/json_emission_zone.hpp file

JSON serialization for EmissionZone (+ legacy-singular fold).

Accepts two equivalent shapes for the pollutant list:

  1. Canonical multi-pollutant form (PLEXOS / GHG-basket): "emissions": [ {"emission": "co2", "weight": 1.0}, {"emission": "ch4", "weight": 27.9} ]
  2. Legacy single-pollutant shortcut: "emission": "co2" (auto-folded to a one-element emissions list with weight 1.0 by EmissionZoneConstructor below — same migration idiom we used for CapacityProfile's legacy keys.)