Skip to content

Instantly share code, notes, and snippets.

@thesauri
Created September 24, 2019 20:13
Show Gist options
  • Save thesauri/777a1f8cdd27938180cde98cdf0ac994 to your computer and use it in GitHub Desktop.
Save thesauri/777a1f8cdd27938180cde98cdf0ac994 to your computer and use it in GitHub Desktop.
const fs = require('fs').promises;
const main = async () => {
const dataText = await fs.readFile('data.json');
const data = JSON.parse(dataText);
const matches = data.Messages;
matches.forEach((match) => {
match.messages.forEach((message) => {
console.log(message.message);
});
});
};
main();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment