Skip to content

Commit

Permalink
Remove duplicate in import-json.md (#14521)
Browse files Browse the repository at this point in the history
  • Loading branch information
deiga authored Oct 13, 2024
1 parent 09b031d commit 47ff474
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions docs/guides/runtime/import-json.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,6 @@ data.version; // => "1.0.0"
data.author.name; // => "John Dough"
```

Bun also supports [Import Attributes](https://github.com/tc39/proposal-import-attributes/) and [JSON modules](https://github.com/tc39/proposal-json-modules) syntax.

```ts
import data from "./package.json" with { type: "json" };

data.name; // => "bun"
data.version; // => "1.0.0"
data.author.name; // => "John Dough"
```

---

Bun also supports [Import Attributes](https://github.com/tc39/proposal-import-attributes/) and [JSON modules](https://github.com/tc39/proposal-json-modules) syntax.
Expand Down

0 comments on commit 47ff474

Please sign in to comment.