caniuse icon indicating copy to clipboard operation
caniuse copied to clipboard

Show Support for JSON Modules

Open Nicholas-Westby opened this issue 4 years ago • 4 comments

Chrome just released version 91, which includes support for JSON modules: https://www.chromestatus.com/feature/5749863620804608

Would be useful to see this on the caniuse website so developers have a sense of whether or not it's supported on their target browsers.

Nicholas-Westby avatar Jun 01 '21 15:06 Nicholas-Westby

JSON modules as I understand is part of Import Assertions proposal

inoyakaigor avatar Sep 28 '21 14:09 inoyakaigor

@inoyakaigor Import Assertions are the prerequisite for JSON Modules but allow for more use cases.

Would be great if Can I Use shows both.

vwkd avatar Oct 03 '21 09:10 vwkd

To clarify Import Assertions are not part of caniuse right now. If they get added, it should have some keywords to help the JSON people find it.

From my brief testing It works in Chrome 91 and Node v17. Firefox throws a very good error stating Import Assertions are not yet supported. It does not work on Safari yet.

FossPrime avatar Mar 02 '22 15:03 FossPrime

JSON Modules is in addition to the import assertions proposal but separate from it https://github.com/tc39/proposal-json-modules

runspired avatar Sep 12 '22 20:09 runspired