Skip to content
CyberLoop-devPublic

About

πŸ” Got a messy blob of JSON? Paste it, hit format, done. 🧹 Validate, minify, search and copy any value from a fold-able tree. 🌳 Runs 100% in your browser, nothing gets uploaded. πŸ™ˆ Zero dependencies, just open index.html. ⚑

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

Β 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

JSONLens banner

License: MIT Dependencies: none Built with vanilla JS

JSONLens is a small, fast JSON workbench. Paste something messy, hit Format, and get a tidy document plus a tree you can fold, search and copy from. No build step, no accounts, no uploads. Your data never leaves the page.

πŸ“Œ What you can do

Action How
Format or minify Toolbar buttons, or Ctrl/Cmd + Enter to format
Validate Happens as you type, with line and column when the parser reports one
Explore Collapsible tree with colored keys, strings, numbers, booleans and nulls
Search Filters the tree to matching keys or values and highlights them
Copy Whole document from the toolbar, or any single value from the tree
Import File picker or drag a .json file onto the page
Stats Keys, objects, arrays, values and approximate size
Themes Dark and light, remembered between visits

πŸš€ Run it

git clone https://github.com/CyberLoop-dev/jsonlens.git
cd jsonlens
# open index.html in your browser, or serve the folder:
python3 -m http.server 8000

There is nothing to install.

πŸ“Œ How it fits together

flowchart LR
  A[Editor / file / example] --> B{JSON.parse}
  B -- ok --> C[Tree + stats]
  B -- error --> D[Line and column message]
  C --> E[Search, fold, copy]
Loading

πŸ“Œ Project structure

jsonlens/
β”œβ”€β”€ index.html   # layout and toolbar
β”œβ”€β”€ styles.css   # theme tokens and components
β”œβ”€β”€ app.js       # parsing, tree, search, stats
└── assets/      # logo and README banner

🎯 Known limitations

  • The editor is a plain textarea, so syntax coloring lives in the inspector tree rather than the input.
  • Very large files (tens of MB) will feel slow because the whole tree is built in the DOM.
  • Numbers beyond JavaScript's safe integer range lose precision, as with any JSON.parse.

πŸ“Œ Ideas for later

  • Syntax-highlighted editor overlay
  • JSON path display and copy
  • Virtualized tree for huge documents

🀝 Contributing

Issues and pull requests are welcome. Keep it dependency-free and keyboard accessible.

πŸ“„ License

MIT

About

πŸ” Got a messy blob of JSON? Paste it, hit format, done. 🧹 Validate, minify, search and copy any value from a fold-able tree. 🌳 Runs 100% in your browser, nothing gets uploaded. πŸ™ˆ Zero dependencies, just open index.html. ⚑

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages