interop
interop copied to clipboard
JSON Module Scripts
Description
JSON modules are a way to import JSON in JavaScript using the import attributes Syntax.
Import attributes is only stage 3, but is looking closer to becoming stage 4 now that the old syntax has been removed from Chrome.
Specification
https://tc39.es/proposal-import-attributes/ https://github.com/tc39/proposal-json-modules
Additional Signals
Implemented in Chrome/Edge and Safari.
This Tweet has almost 900 likes https://x.com/mattpocockuk/status/1694679999117246640?s=20
Tests: https://wpt.fyi/results/html/semantics/scripting-1/the-script-element?label=master&label=experimental&aligned&q=%28import-attributes%20or%20json%29%20and%20not%20assertions