JSON

Parcel supports importing JSON and JSON5 files into JavaScript out of the box.

Example usage

#
app.js:
import data from './data.json';
console.log(data.hello[0]);
// => "world"
data.json:
{
"hello": [
"world",
"computer"
]
}