I am using leaflet 1.7.1 and successfully loaded JSON file from the local memory of my machine. I have an object which looks like this:
covid = {"AFG":{"continent":"Asia","location":"Afghanistan","population":38928341.0,"population_density":54.422,"median_age":18.6},
"KOR":{"continent":"Asia","location":"Afghanistan","population":38928341.0,"population_density":54.422,"median_age":18.6},
"KGZ":{"continent":"Asia","location":"Afghanistan","population":38928341.0,"population_density":54.422,"median_age":18.6},
....}
What I want to do is to get countries by their ISO country code(e.g. KOR, KGZ etc). Even after converting to object file I cannot get by index like covid[0] but it is not working. I am new to JS and cannot really handle the data.