Asked 30+ days ago
23 Sep 2017
Views 194
lain

lain posted

how to prase JSON file with Node JS ?

how to prase JSON file with Node JS ?
haha not possible like just use Rust and Serde -  
Oct 2 '17 10:59
Mitul Dabhi

Mitul Dabhi
answered Dec 13 '17 20:17


npm install  jsonfile



var jsonfile = require("jsonfile")
var file ="data.json"
jsonfile.readFile(file, function(err, obj) {
  console.dir(obj)
})
Edit Answer
Share
Rasi

Rasi
answered Dec 13 '17 20:17


JSON.parse(response);


simple isnt it ?
Edit Answer
Share
Post Answer