import json servo_mapping_filename = "/home/wuselfuzz/hexapod_ng/configuration/servo_mapping.json" with open(servo_mapping_filename, "r") as f: servo_mapping = json.load(f) print(json.dumps(servo_mapping, indent=4))