JSON import attributes
Limited availability
Module import … with { type: "json" }
statements load JSON data. Also known as JSON module scripts and formerly known as import assertions.
Compatibility
- Chrome 123 Released on 2024-03-19
- Chrome Android 123 Released on 2024-03-19
- Edge 123 Released on 2024-03-22
- Firefox ❌ See bugzil.la/1736059
- Firefox for Android ❌ See bugzil.la/1736059
- Safari 17.2 Released on 2023-12-11
- Safari on iOS 17.2 Released on 2023-12-11
Baseline availability blocked since March 2024 by Firefox (8 months)
Specifications
- HTML Standard (#json-module-script), from HTML Workstream (WHATWG).