import json class SampleDataProviderService: def getCIBILRawData(reference_number,type): filename = './data.json' if type == 1 else './com.json' if type == 2 else '' with open(filename) as json_file: data = json.load(json_file) return data