Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSON Module Scripts #705

Open
o-t-w opened this issue Sep 17, 2024 · 3 comments
Open

JSON Module Scripts #705

o-t-w opened this issue Sep 17, 2024 · 3 comments
Labels
focus-area-proposal Focus Area Proposal

Comments

@o-t-w
Copy link

o-t-w commented Sep 17, 2024

Description

JSON modules are a way to import JSON in JavaScript using the import attributes Syntax.

Import attributes and JSON modules are at stage 4 at TC39.
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

@nicolo-ribaudo
Copy link
Member

but is looking closer to becoming stage 4

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

@thescientist13
Copy link

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

@thescientist13
Copy link

Import Attributes and JSON Modules are now stage 4! - #733 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
focus-area-proposal Focus Area Proposal
Projects
Status: No status
Development

No branches or pull requests

3 participants