JSON import attributes
Module import … with { type: "json" }
statements load JSON data. Also known as JSON module scripts.
Status
Baseline Newly Available (since 2025-04-29)
This feature is expected to reach Baseline Widely Available status on: 2027-10-29
MDN documentation
Specifications
- HTML (#json-module-script), from HTML Workstream (WHATWG).
Browser support
- Chrome 123 Released on 2024-03-19
- Chrome Android 123 Released on 2024-03-19
- Edge 123 Released on 2024-03-22
- Firefox 138 Released on 2025-04-29
- Firefox for Android 138 Released on 2025-04-29
- Safari 17.2 Released on 2023-12-11
- Safari on iOS 17.2 Released on 2023-12-11
Interop
- Included in Interop 2025
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist