gtopt/json/json_emission_source.hpp file

JSON serialization for EmissionSource.

Canonical top-level form (every field explicit):

{"uid": 1, "name": "ngcc_co2",
 "generator": "ngcc_la", "zone": "global_co2", "emission": "co2",
 "rate": 0.4,           // combustion (TTW) tons / MWh
 "upstream_rate": 0.05  // optional well-to-tank (WTT) tons / MWh
}

Inline-on-generator shorthand (Generator.emissions[]): omits uid / name / generator, which are auto-filled at parse time by System::expand_emission_sources().