Created
September 24, 2019 20:13
-
-
Save thesauri/777a1f8cdd27938180cde98cdf0ac994 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
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