Skip to content

Instantly share code, notes, and snippets.

@YokiToki
Created June 10, 2019 15:31
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 YokiToki/274a97fac7f3f9240db3d569104d4d5e to your computer and use it in GitHub Desktop.
Save YokiToki/274a97fac7f3f9240db3d569104d4d5e to your computer and use it in GitHub Desktop.
const fs = require("fs");
const json = fs.readFileSync("out.json");
const content = JSON.parse(json);
content.responses[0].hits.hits.map(function (obj) {
console.log('type', obj._source.type);
console.log('date', obj._source.date);
console.log('sequence', obj._source.sequence);
console.log('');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment