Created
September 27, 2015 08:57
-
-
Save matsuhisa/81fb41ee3e3475fdd906 to your computer and use it in GitHub Desktop.
node.js でのjsonファイルの読み込み
This file contains 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
var fs = require('fs'); | |
var json = JSON.parse(fs.readFileSync('./test.json', 'utf8')); | |
console.log(json.marker[0].name); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
読み込んだJsonファイルは