In Javascript you can iterate through a JSON array by using something like moves[i].name in a loop where moves is the JSON array, i is the index, and .name is the value. In typescript, however, when I try to iterate through a JSON array, the same syntax fails.
Typing `let name:String = totalMap[i].title; throws the error Element implicitly has an 'any' type because type 'JSON' has no index signature.
Is this a difference with Typescript or my code in general?
totalMap is initialized as (<any>map).allAreas where map is a JSON object.
The array is
"allAreas" : [{
"area1": {
"title": "River",
"description": "A quiet river deep inside a forest",
"hazard": "All clear",
"start": true,
"north" : "Open field",
"south" : "none",
"east" : "none",
"west" : "none"
},..]
and then it continues on with more areas
map?require('./files.json');