Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

js read file json

fs.readFile(filePath, function (error, content) {
    var data = JSON.parse(content);
    console.log(data.collection.length);
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #js #read #file #json
ADD COMMENT
Topic
Name
8+3 =