doc: fix ESM JSON/data URL import example

PR-URL: https://github.com/nodejs/node/pull/42728
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Beth Griggs <bgriggs@redhat.com>
This commit is contained in:
Rich Trott
2022-04-14 04:24:20 -07:00
committed by GitHub
parent e61b62b9d4
commit a058cefe29

View File

@@ -200,7 +200,7 @@ URLs being used is:
```js
import 'data:text/javascript,console.log("hello!");';
import _ from 'data:application/json,"world!"';
import _ from 'data:application/json,"world!"' assert { type: 'json' };
```
#### `node:` Imports