Skip to content

Instantly share code, notes, and snippets.

@wookiecooking
Created May 12, 2014 18:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wookiecooking/b7fcec8fe5e111c6117a to your computer and use it in GitHub Desktop.
Save wookiecooking/b7fcec8fe5e111c6117a to your computer and use it in GitHub Desktop.
var fs = require('fs');
var file = __dirname + '/test.json';
fs.readFile(file, 'utf8', function (err, data) {
if (err) {
console.log('Error: ' + err);
return;
}
data = JSON.parse(data);
console.dir(data);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment