As of Node v0.5.x, yes.

You can require your JSON just as you would require a JS file.

const someObject = require('./somefile.json')

In ES6:

import someObject from './somefile.json'
Answer from goatslacker on Stack Overflow
🌐
Stefan Judis
stefanjudis.com › snippets › how-to-import-json-files-in-es-modules-node-js
How to import JSON files in ES modules (Node.js) | Stefan Judis Web Development
May 15, 2025 - After quite a bit of back and forth, the current Node.js LTS (currently v22) and future Node.js versions support JSON modules by using the JavaScript-native "import attributes".
🌐
DEV Community
dev.to › sovannaro › importing-json-and-watch-mode-in-nodejs-4dcf
Importing JSON and Watch Mode in Node.js 🚀 - DEV Community
March 1, 2025 - import config from "./config.json" assert { type: "json" }; console.log(config); ✅ This method works only in ES Modules (type: "module" in package.json). If you need to load JSON dynamically, use the File System (fs) module:
🌐
Stack Abuse
stackabuse.com › bytes › how-to-import-a-json-file-in-javascript-node-js
How to Import a JSON File in JavaScript/Node.js
September 18, 2023 - Also, require caches whatever it loads, so if you need to reload a JSON file later in your program execution, it'll still return the same data, even if the file changed. While importing JSON files in Node.js is generally simple, you still have to do proper error handling along the way.
🌐
DEV Community
dev.to › stefanjudis › how-to-import-json-files-in-es-modules-node-js-3b24
How to import JSON files in ES modules (Node.js) - DEV Community
May 16, 2021 - The Node.js documentation advises to use the fs module and do the work of reading the files and parsing it yourself. import { readFile } from 'fs/promises'; const json = JSON.parse( await readFile( new URL('./some-file.json', import.meta.url) ) );
🌐
Koladechris
koladechris.com › blog › how-to-import-a-json-file-in-javaScript
How to Import a JSON File in JavaScript
Learn how to import a JSON file in JavaScript, handle common errors, and explore a practical alternative.
🌐
LogRocket
blog.logrocket.com › home › reading and writing json files in node.js: a complete tutorial
Reading and writing JSON files in Node.js: A complete tutorial - LogRocket Blog
November 1, 2024 - In the Node runtime environment, you can use the built-in require function and fs modules to load or read JSON files. Because the require function is available for each module, you don’t need to require it.
Find elsewhere
🌐
Milddev
milddev.com › nodejs-how-to-import-json-file
Node.js How to Import JSON File
Import JSON files in Node.js using require, fs/promises, or ES Module import assertions. Learn methods, tips, and error handling.
🌐
Medium
tim-paulaskas.medium.com › how-to-import-json-files-in-es-modules-node-js-with-using-assert-a3c1dc27ac08
How to import JSON files in ES modules (Node.js) without using assert | by Tim Paulaskas | Medium
January 21, 2023 - My original statement is in my index.js file, so I will need to create a new one. I’ll name it pkgObj.cjs. module.exports = pkgObj = require('./package.json')
🌐
YouTube
youtube.com › watch
Nodejs Tutorial #25: Import JSON Data and Create Your First API - YouTube
✨LinkedIn: https://www.linkedin.com/in/khaiserkhanam/✨Instagram: https://www.instagram.com/khaiserkhanam/🎁Gift Business: https://www.instagram.com/gleam_cre...
Published   January 11, 2025
Views   419
🌐
Futurestud.io
futurestud.io › tutorials › node-js-read-a-json-file
Node.js — Read a JSON File
const Fs = require('fs/promises') const json = await Fs.readFile('./package.json') const package = JSON.parse(json) package.version // 3.5.0 · You can use the package object like you would use any other JavaScript object. The CommonJS module loader comes with the require() function. It’s ...
🌐
Dmitri Pavlutin
dmitripavlutin.com › javascript-json-modules
JSON Modules in JavaScript
December 3, 2021 - When trying to run the application, Node.js throws an error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".json". Node.js expects JavaScript code by default when using the import statement.
🌐
Simon Plenderleith
simonplend.com › home › all posts › import json in es modules
Import JSON in ES modules - Simon Plenderleith
March 31, 2022 - For versions of Node.js < v17.5.0 you need to use the --experimental-json-modules flag to use JSON imports in ES modules.
🌐
DEV Community
dev.to › kiani0x01 › nodejs-how-to-import-json-file-1jj4
Node.js How to Import JSON File - DEV Community
July 6, 2025 - Import JSON files in Node.js using require, fs/promises, or ES Module import assertions. Learn methods, tips, and error handling.
🌐
Emmanuel Gautier
emmanuelgautier.com › home › blog › import a json file content from a node.js module
Import a JSON file content from a Node.JS module
May 22, 2023 - With the new Node.JS modules, it is possible to read JSON file content with the import function which is quite simple but you have to do it the right way.
🌐
Geshan
geshan.com.np › blog › 2024 › 10 › nodejs-read-json-file
How to Read a JSON File Using Node.js
October 30, 2024 - You import the readJson function directly from the 'fs-extra' package. The readJson function handles both reading the file and parsing it into a JavaScript object, simplifying the code.
🌐
Node.js
nodejs.org › api › esm.html
Modules: ECMAScript modules | Node.js v25.8.1 Documentation
Return the parsed JSON source of the file at pjsonURL. ... Parse source as an ECMAScript module. ... If source contains top-level await, static import or export statements, or import.meta, return true.