I have a JSON file
Testing.json
{
"DEV_MODE": false
}
and how can I access this value in JavaScript because i want to make check
if( DEV_MODE === true) {...} else {...}
I tried like this
import jsonFile from '../../testing.json'
var json = JSON.parse(jsonFile)
if(json.getProperty('DEV_MODE'){
...
}else{
...
}
but it doesn't work.
if(json["DEV_MODE"]) {...