Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
0
// Let's say there's a file named food.json // inside of food.json { "Breakfast" : "egg", "Lunch" : "fish", "Dinner" : "chicken" } //to parse food.json file, u will need a js file // let's say there's a file named index.js //inside index.js const json = require("./food.json"); console.log(JSON.parse(json));
22nd Nov 2019, 11:19 AM
VOID
VOID - avatar