test.js 243 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 var fs = require("fs"); var content = JSON.parse(fs.readFileSync("grammar.json")); ip = content["Telescope"]["set"][0]["input_label"][0]; console.log(JSON.stringify(ip) + "\n\n"); for (var tmp in ip){ console.log(ip[tmp][1] + '\n\n');}