// JSON that I have
const data = `{
"accounts": {
"[email protected]": {
"zipcode": "",
"inCharge": ""
},
"[email protected]": {
"zipcode": "",
"inCharge": ""
},
"[email protected]": {
"zipcode": "",
"inCharge": ""
}
}
}`
const records = JSON.parse(data);
const columns = Object.keys([email protected]);
I have tried the following, none of which did work:
[email protected] records.accounts.["[email protected]"]
records.accounts.eval("[email protected]")