Skip to content

edbzed/json-validator

Repository files navigation

JSON Validator

License React TypeScript Vite Tailwind CSS

JSON validation tool featuring real-time syntax checking and formatting.

Features

  • Real-time JSON validation
  • Line numbers and syntax highlighting
  • Copy formatted JSON to clipboard
  • Load example JSON data from APIs
  • Keyboard shortcuts (Ctrl/Cmd + Enter)
  • Responsive design
  • Beautiful UI with Tailwind CSS
  • 10MB file size limit

JSON Validator

Quick Start

# Install dependencies
npm install

# Start development server
npm run dev

# Build for production
npm run build

# Preview production build
npm run preview

Tech Stack

  • React 18
  • TypeScript
  • Tailwind CSS
  • Vite
  • Lucide React Icons
  • ESLint

Development

The project uses Vite for fast development and building. The development server includes features like:

  • Hot Module Replacement (HMR)
  • Error overlay
  • TypeScript type checking
  • ESLint integration

Project Structure

├── docs/                 # Documentation
│   ├── api-design.md
│   ├── architecture.md
│   ├── component-structure.md
│   ├── data-model.md
│   ├── requirements.md
│   ├── scaling-plan.md
│   └── testing-strategy.md
├── src/
│   ├── App.tsx          # Main application component
│   ├── main.tsx         # Application entry point
│   └── index.css        # Global styles
├── public/              # Static assets
└── package.json         # Project dependencies and scripts

Features in Detail

JSON Validation

  • Validates JSON syntax
  • Shows detailed error messages
  • Supports large JSON files up to 10MB
  • Real-time validation feedback

JSON Formatting

  • Pretty prints valid JSON
  • Syntax highlighting
  • Line numbers
  • Copy formatted JSON to clipboard

Example Data

  • Load sample JSON from external APIs
  • Error handling for failed requests
  • Loading states and feedback

Creator

Ed Bates (TECHBLIP LLC)

Acknowledgments

Some sections of this code were generated with the assistance of AI tools. These contributions were reviewed and integrated by the project creator(s).

License

Apache-2.0 License - see the LICENSE file for details

About

JSON validation tool featuring real-time syntax checking and formatting.

Resources

License

Stars

Watchers

Forks