Read A JSON File Into An Object In JavaScript

November - 2021

This is a quick and dirty one with no error handling:

const fs = require('fs')

const jsonData = JSON.parse(fs.readFileSync('source.json'))