debug: add MarshalJSON to UnitStateGenerator