read data from json file in javascript without fs code example Example: read json using fs let jsonData = require('./student.json'); console.log(jsonData);