Asked 7 years ago
23 Sep 2017
Views 1519
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 Nov 30 '-1 00:00


npm install  jsonfile



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

Rasi
answered Nov 30 '-1 00:00


JSON.parse(response);


simple isnt it ?
Post Answer