def load_endpoint_json(path):
 with open(path, 'r') as endpoints_file:
  return json.load(endpoints_file)

def load_endpoint_json ( path ) : with open ( path , 'r' ) as endpoints_file : return json . load ( endpoints_file )
loads a given json file & returns it .