Added variable type check in config.json and hardware.json file