1Try to use file system. Don't think reading from a JSON file works like that.
2
3const fs = require('fs');
4const json_data = require('../services/contributors.JSON');
5
6fs.readFile(json_data, 'utf8', function (err, data) {
7 try {
8 data = JSON.parse(data)
9 for (let i in data){
10 console.log('Name:',data[i].name)
11 }
12 } catch (e) {
13 // Catch error in case file doesn't exist or isn't valid JSON
14 }
15});