Skip to content

Vue3 JSON ViewerBeautiful JSON visualization for Vue 3

A customizable, TypeScript-ready JSON viewer with dark/light mode, expand/collapse controls, and syntax highlighting.

Vue3 JSON Viewer

Preview ​

Vue3 JSON Viewer Demo

Quick Start ​

Installation ​

bash
npm install @anilkumarthakur/vue3-json-viewer

Basic Usage ​

vue
<script setup>
  import { JsonViewer } from '@anilkumarthakur/vue3-json-viewer';
  import '@anilkumarthakur/vue3-json-viewer/styles.css';

  const data = {
    name: 'John Doe',
    age: 30,
    hobbies: ['reading', 'coding'],
  };
</script>

<template>
  <JsonViewer
    :data="data"
    :darkMode="true"
  />
</template>

Why Vue3 JSON Viewer? ​

FeatureDescription
🎯 Zero DependenciesNo external dependencies besides Vue 3
📱 ResponsiveWorks on all screen sizes
♿ AccessibleKeyboard navigable and screen reader friendly
🚀 PerformantEfficiently handles large JSON structures
🔧 CustomizableEasy to customize with props

Released under the MIT License.