I have a large JSON file that is generated by another process that I can't modify. In case of blank values, that process puts "null" as a value of those properties.
And I need to treat these "null" values as null in my Nodejs server side, or else they are taken as literal string. I would like to see if there is a way with JSON.parser(fs.readFileSync('...'))
to read the file and create a local variable that has null
instead of "null"
for those properties.