Supported extensions: json, json5

You can import json files into your js like this import data from './filename.json'.

Example file structure:

├── package.json
└── src
    ├── data.json
    └── index.js
  "hello": [
// index.js

import data from './data.json'

// "world"

Help us improve the docs

If something is missing or not entirely clear, please file an issue on the website repository or edit this page.