Bun JSON5

Use Bun's built-in support for JSON5 files through both runtime APIs and bundler integration

9 stars 1 forksOther

Install

skills CLI (Claude Code, Cursor, Codex and more)
npx skills add jarle/bun-skills --skill Bun JSON5
Manual install
git clone --depth 1 https://github.com/jarle/bun-skills.git /tmp/bun-skills
mkdir -p ~/.claude/skills
cp -r /tmp/bun-skills/skills/bun-runtime-json5 ~/.claude/skills/Bun-JSON5

Personal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.

From the SKILL.md

# JSON5

> Use Bun's built-in support for JSON5 files through both runtime APIs and bundler integration

In Bun, JSON5 is a first-class citizen alongside JSON, TOML, and YAML. You can:

* Parse and stringify JSON5 with `Bun.JSON5.parse` and `Bun.JSON5.stringify`
* `import` & `require` JSON5 files as modules at runtime (including hot reloading & watch mode support)
* `import` & `require` JSON5 files in frontend apps via Bun's bundler

***

## Conformance

Bun's JSON5 parser passes 100% of the [official JSON5 test suite](https://github.com/json5/json5-tests). The parser is written in Zig for optimal performance. You can view our [translated test suite](https://github.com/oven-sh/bun/blob/main/test/js/bun/json5/json5-test-suite.test.ts) to see every test case.

***

## Runtime API

### `Bun.JSON5.parse()`

Parse a JSON5 string into a JavaScript value.

```ts  theme={"theme":{"light":"github-light","dark":"dracula"}}
import { JSON5 } from "bun";

const data = JSON5.parse(`{
  // JSON5 supports comments
  name: 'my-app',
  version: '1.0.0',
  debug: true,

  // trailing commas are allowed
  tags: ['web', 'api',],
}`);

console.log(data);
// {
//   name: "my-app",
//   version: "1.0.0",
//   debug: true,
//   tags: ["web", "api"]
// }
```

#### Supported JSON5 Features

JSON5 is a superset of JSON based on ECMAScript 5.1 syntax. It supports:

* **Comments**: single-line (`//`) and multi-line (`/* */`)
* **Trailing commas**: in objects and arrays
Read the full skill on GitHub

Details

Skill name
Bun JSON5
Path
skills/bun-runtime-json5/SKILL.md
License
MIT
Repo updated
24 February 2026

FAQ

What does the Bun JSON5 skill do?

Use Bun's built-in support for JSON5 files through both runtime APIs and bundler integration

How do I install the Bun JSON5 skill?

skills CLI (Claude Code, Cursor, Codex and more): npx skills add jarle/bun-skills --skill Bun JSON5. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.

Is Bun JSON5 popular?

It lives in jarle/bun-skills, which has 9 GitHub stars and 1 forks.

Related skills

Browse the most popular Claude skills, all other skills, or write your own with the skills generator.