code: def get_all_masters():
      
      masters = []
      for master in __master_zk_nodes_keys():
          master_zk_str = get_zk_node_data(master)['str']
          masters.append(json.loads(master_zk_str))
  
      return masters
docs: Returns the json object that represents each of the masters.