from server2024 import server2024 import sys import os import traceback import json try: file_name = sys.argv[1] except: print(traceback.format_exc()) f = open(file_name) # returns JSON object as # a dictionary data = json.load(f) print(file_name) print(data) # Iterating through the json # list for fieldid, uid in data.items(): print(uid, fieldid) server2024(uid,fieldid) # print(("before: " +fields_obj)) # fields_obj = fields_obj.replace("\'","\"") # print(("after: " + fields_obj)) # fields_obj = json.loads(fields_obj) #print(len(fields_obj)) # for fieldid, uid in fields_obj.items(): # print(uid, fieldid) #server2023(uid, fieldid)