Use the JSON Toolbox editor in your own project — Vue 3 component, Web Component, or plain script tag. Free, open source, and 100% client-side.
npm install @kbmjj123/json-editor
# or
pnpm add @kbmjj123/json-editor
Peer dependencies (Vue 3 + CodeMirror 6) must be installed by the host:
npm install vue @codemirror/commands @codemirror/lang-json @codemirror/language @codemirror/state @codemirror/view @lezer/highlight
<script setup lang="ts">
import { ref } from 'vue'
import { JsonEditor } from '@kbmjj123/json-editor'
import '@kbmjj123/json-editor/style.css'
const value = ref('{"hello": "world"}')
</script>
<template>
<JsonEditor v-model="value" view="both" theme="auto" locale="en" />
</template>
import { registerJsonEditor } from '@kbmjj123/json-editor/wc'
import '@kbmjj123/json-editor/style.css'
registerJsonEditor()
<json-editor
value='{"hello": "world"}'
view="both"
theme="light"
height="320px"
></json-editor>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@kbmjj123/json-editor@latest/dist/json-editor.iife.css">
<script src="https://cdn.jsdelivr.net/npm/@kbmjj123/json-editor@latest/dist/json-editor.iife.js"></script>
<json-editor value='{"hello": "world"}' theme="dark"></json-editor>
The CDN bundle is also available on unpkg.
attribution badge for a natural backlinkJSON Toolbox is maintained as four separate repositories. Each project is self-contained and links back to this site.
| Repository | What it is | Source |
|---|---|---|
| Site | This Nuxt 4 site: client-side tools to format, validate, convert and view JSON | GitHub |
@kbmjj123/json-editor | The editor library published on npm — Vue 3 component, Web Component or CDN script | GitHub |
| Browser extension | Chrome/Edge/Firefox extension that turns raw JSON pages into an editable viewer with search, table view and CSV export | Details & downloads · GitHub |
| Obsidian plugin | Rich JSON/YAML viewer for Obsidian with 14 kinds of inline previews | GitHub |