Guest User

Untitled

a guest
Jun 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. const fs = require('fs');
  2. const json = JSON.parse(fs.readFileSync('./a.json', 'utf8'));
  3.  
  4. for (let o of json) {
  5. for (let [key, value] of Object.entries(o)) {
  6. console.log({ key, value });
  7. }
  8. }
Add Comment
Please, Sign In to add comment