def json_data(): hosts = MonitorColl.get_network_json_dict() networks = MonitorColl.get_all_network() return jsonify(hosts=hosts, networks=networks)