A lightweight JSON formatter and editor component for Vue 3. Version 0.1.3 provides a simple v-model-based editor with dark mode, color formatting, and optional editing/error display. It is a single-file Vue component with zero dependencies, offering an alternative to heavier editors like vue-json-pretty. The package is released on npm with no established release cadence; it supports Vue 3 only and does not ship TypeScript types.
npm install lite-json-editorNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows basic setup: import default component, bind reactive JSON data with v-model, enable dark mode and custom indent.
Create a declaration file in your project: declare module 'lite-json-editor' { ... }Ensure your project uses Vue 3 (vue@^3).
Use ref() or reactive() for the bound value.
In scoped styles, use :deep(.lite-json-editor) to target internal elements.
Pin exact version in package.json and test upgrades carefully.
Use `const value = ref()` and pass `value` in template.
Use default import: `import LiteJsonEditor from 'lite-json-editor'` and ensure Vue 3 is used.
Register the component globally or use PascalCase in the template: `<LiteJsonEditor />`
No dependency data recorded yet.