interop icon indicating copy to clipboard operation
interop copied to clipboard

JSON Module Scripts

Open o-t-w opened this issue 1 year ago • 2 comments

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

o-t-w avatar Sep 17 '24 19:09 o-t-w

but is looking closer to becoming stage 4

I will propose it for stage 4 at the TC39 meeting in early October.

nicolo-ribaudo avatar Sep 18 '24 11:09 nicolo-ribaudo

@nicolo-ribaudo That would be great! In particular since this would also help prop up #703 as well 🙌

thescientist13 avatar Sep 18 '24 14:09 thescientist13

Import Attributes and JSON Modules are now stage 4! - https://github.com/web-platform-tests/interop/issues/733#issuecomment-2399804128

thescientist13 avatar Oct 08 '24 13:10 thescientist13

Thank you for proposing JSON Module Scripts for inclusion in Interop 2025.

We are pleased to let you know that this proposal was accepted as part of the Modules focus area. You can follow the progress of this focus area on the Interop 2025 dashboard.

For an overview of our process, see proposal selection. Thank you for contributing to Interop 2025!

Posted on behalf of the Interop team.

wpt-interop avatar Feb 13 '25 17:02 wpt-interop