Can someone help me figure out how to retrieve data from the xmltojson.json file and assign it to a variable using JavaScript?
const jsonfile = require('jsonfile')
const file = 'xmltojson.json'
jsonfile.readFile(file, function (err, obj) {
if (err) console.error(err)
console.dir(obj)
})