control: Add cache maps to fan control dump

Add the _objects, _parameters, and _servTree maps to the fan control
JSON dump file.

A condensed example is:
{
    "flight_recorder": [
        "Oct 06 05:59:01.183998: main: Startup"
    ],
    "parameters": null,
    "objects": {
        "/xyz/openbmc_project/sensors/temperature/vpcie_dcm1_rail_temperature": {
            "org.freedesktop.DBus.Introspectable": null,
            "org.freedesktop.DBus.Peer": null,
            "org.freedesktop.DBus.Properties": null,
            "xyz.openbmc_project.Association.Definitions": {
                "Associations": false
            },
            "xyz.openbmc_project.Sensor.Value": {
                "MaxValue": 250.0,
                "MinValue": -50.0,
                "Unit": "xyz.openbmc_project.Sensor.Value.Unit.DegreesC",
                "Value": 60.0
            },
            "xyz.openbmc_project.State.Decorator.Availability": {
                "Available": true
            },
            "xyz.openbmc_project.State.Decorator.OperationalStatus": {
                "Functional": true
            }
        },
    },
    "services": {
        "/xyz/openbmc_project/sensors/temperature/vpcie_dcm1_rail_temperature": {
            "xyz.openbmc_project.Power.Regulators": [
                true,
                [
                    "xyz.openbmc_project.Sensor.Value"
                ]
            ]
        },
    }
}

Signed-off-by: Matt Spinler <spinler@us.ibm.com>
Change-Id: Id3351127e07bcf1094d1e0a7891625632afa8d5b
diff --git a/control/json/manager.hpp b/control/json/manager.hpp
index 92f837e..22b5630 100644
--- a/control/json/manager.hpp
+++ b/control/json/manager.hpp
@@ -587,6 +587,13 @@
      * @brief Callback from debugDumpEventSource to dump debug data
      */
     void dumpDebugData(sdeventplus::source::EventBase&);
+
+    /**
+     * @brief Dump the _objects, _servTree, and _parameters maps to JSON
+     *
+     * @param[out] data - The JSON that will be filled in
+     */
+    void dumpCache(json& data);
 };
 
 } // namespace phosphor::fan::control::json