control: Store zone data in the dump

Store the Zone class's attributes in the debug dump.

    "zones": {
        "0": {
            "active": true,
            "decrease_allowed": {},
            "decrease_delta": 0,
            "decrease_interval": 30,
            "default_ceiling": 11200,
            "default_floor": 8000,
            "floor": 8000,
            "floor_change": {},
            "holds": {},
            "increase_delay": 5,
            "increase_delta": 0,
            "persisted_props": {},
            "power_on_target": 11200,
            "requested_target_base": 0,
            "target": 11200
        }
    }

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: I9e84f95f892b1cb549b0c988e0f79e8bb5d659c2
diff --git a/control/json/manager.cpp b/control/json/manager.cpp
index 01365e7..42c267b 100644
--- a/control/json/manager.cpp
+++ b/control/json/manager.cpp
@@ -108,6 +108,10 @@
     FlightRecorder::instance().dump(data);
     dumpCache(data);
 
+    std::for_each(_zones.begin(), _zones.end(), [&data](const auto& zone) {
+        data["zones"][zone.second->getName()] = zone.second->dump();
+    });
+
     std::ofstream file{Manager::dumpFile};
     if (!file)
     {