Skip to content

JSON Parser Visualize is a lightweight frontend tool for exploring JSON as interactive diagrams. It supports vertical flow, horizontal flow, and classic tree views, with collapse/expand, array-path filtering, zoom, pan, and fullscreen mode.

Notifications You must be signed in to change notification settings

Simon9997/json-parser-visualize

Repository files navigation

JSON Visual Flow Editor

English | 简体中文

100% AI Generated

A lightweight frontend tool for visualizing JSON as interactive diagrams.

Demo:

Features

  • Standard JSON parsing (JSON.parse)
  • Three views:
    • Vertical flow
    • Horizontal flow (field-anchored connectors)
    • Classic tree
  • Interactions:
    • Collapse / expand nodes (default: collapsed except root)
    • Collapse all / expand all
    • Array-path-only filter
  • Canvas controls:
    • Zoom (20% ~ 200%)
    • Pan
    • Canvas fullscreen mode

Quick Start

cd <project-root>
./start.sh

Open:

Deployment

This is a static frontend project and can be deployed to any static host.

1) Local static server

cd <project-root>
python3 -m http.server 8080

2) Nginx

  1. Upload files to a web root (example: /var/www/json-tree-parser):
  • index.html
  • style.css
  • script.js
  • jsonTreeCore.js
  1. Nginx config:
server {
    listen 80;
    server_name your-domain.com;

    root /var/www/json-tree-parser;
    index index.html;

    location / {
        try_files $uri $uri/ /index.html;
    }
}
  1. Reload:
nginx -t
sudo systemctl reload nginx

3) Docker

FROM nginx:stable-alpine
WORKDIR /usr/share/nginx/html
COPY index.html style.css script.js jsonTreeCore.js ./
EXPOSE 80
docker build -t json-tree-parser:1.0.0 .
docker run -d --name json-tree-parser -p 8080:80 json-tree-parser:1.0.0

4) Vercel / Netlify

  • Import the repository
  • Leave Build Command empty
  • Set Output Directory to .

Test

npm test

More

  • Detailed deployment guide: DEPLOYMENT.md

About

JSON Parser Visualize is a lightweight frontend tool for exploring JSON as interactive diagrams. It supports vertical flow, horizontal flow, and classic tree views, with collapse/expand, array-path filtering, zoom, pan, and fullscreen mode.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published