Read and parse a JSON file.
npm install read-json-fileRead and parse a JSON file asynchronously using a callback.
``javascript
var readJson = require('read-json-file');
readJSON(pathToYourJson, function(error, data){
if (error) {
throw error;
}
console.log(data);
});
``
Returns any fs or Json.Parse() errors.
Byte order markers are striped before parsing.