const someMap = new Map();
someMap.set('key', 'value');
const jsonFromMap = Object.fromEntries(someMap);
// { "key": "value" }
const path = require('path')
const someMap = Object.entries(JSON.parse(await fs.promise.readFile(path.resolve(jsonPath)).toString()));