DEV Community

Cover image for πŸ§ͺ Validate and Format JSON in Style β€” With Downloads, XML, and More!
Jayant Navrange
Jayant Navrange

Posted on

πŸ§ͺ Validate and Format JSON in Style β€” With Downloads, XML, and More!

Validate and Format JSON in Style with json.validator

TL;DR
I built a lightweight JSON validation tool that’s colorful, clear, and downloadable.
πŸ”— Github Repo

🧰 Features at a Glance

βœ… Real-time validation (Green = OK, Red = Error)
🧾 Error message display
πŸ’Ύ Download as .json or .xml
⏳ Auto-reset after 1 min of textarea focus loss
🧹 Manual clear/reset
πŸ“œ Planned: Line numbers for better readability

πŸ“¦ Latest Changes (14 June 2024)

  • Basic JSON formatting implemented
  • Download options for .json and .xml files
  • Auto data reset on inactivity

πŸ”§ Under the Hood

  • Uses xml-js for converting JSON to XML
  • Built as a simple web tool with a clean interface
  • Designed to help both beginners and power users of JSON

πŸš€ What’s Next

  • Add line numbering for better navigation
  • Possibly enable multi-format output or clipboard copy
  • More robust error messages (in progress)

🀝 Want to Help?

PRs and stars are welcome!

Sponsorships help keep the lights on β˜•

β†’ Github Sponsor

πŸ“œ License

MIT License β€” do what you want, just give credit 😊

Try on https://jayantur13.github.io/json.validator/

Let me know your thoughts, feedback, or ideas in the comments below!

Top comments (0)