FWIW, this has been around for a bit.. That said, I still think there's room to improve some of the tooling around imports, both JSON here, and CSS (future)... I think web components are pretty nifty and finally relatively broadly supported, so it would be nice to see a bit more work there.
https://caniuse.com/mdn-javascript_statements_import_import_attributes_type_json