I have a JSON file which contains an array object as such :
[
{
"VergiNo": "XXXXXXX"
},
{
"VergiNo": "YYYYYY"
},
{
"VergiNo": "ZZZZZZ"
}
]
and I import this JSON file to my Typescript file
import * as firmalar from "../firmalar.json";
const firmaPromises = firmalar.map((firma) => firma.VergiNo + "XYZ");
Above code gives no syntax error, however when I run the application and debug it, firmalar object is seen as object not an array, so it doesn't process map method.
Is there anything wrong that I'm doing here?