Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
// 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