Created
March 18, 2016 19:06
-
-
Save derekpeterson/cbdf05910e3bd6cbea95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Save the raw JSON paste to file.json | |
// Then start up a Node REPL and do this | |
var data = require('./file.json'); | |
var fs = require('fs'); | |
fs.writeFileSync('./formatted-file.json', JSON.stringify(data, null, 2)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment