import json


def get_config_db_json_obj(dut):
    """
    Get config_db content from dut
    Args:
        dut (SonicHost): The target device
    """
    config_db_json = dut.shell("sudo sonic-cfggen -d --print-data")["stdout"]
    return json.loads(config_db_json)