node js reuire json shows onject
// Step 1: Require the 'fs' module (File System) to work with files
const fs = require('fs');
// Step 2: Specify the path to the JSON file
const filePath = 'path/to/your/file.json';
// Step 3: Read the contents of the JSON file synchronously
const jsonContent = fs.readFileSync(filePath, 'utf-8');
// Step 4: Parse the JSON content into a JavaScript object
const jsonObject = JSON.parse(jsonContent);
// Step 5: Use the parsed object as needed
console.log(jsonObject);