This is a React-based web application that allows users to dynamically build and visualize JSON Schemas. Built with ShadCN UI and React Hook Form, this tool provides a clean, responsive interface for constructing complex JSON structures interactively.
- ✅ Add, edit, and delete fields dynamically
- ✅ Supported field types: String, Number, and Nested
- ✅ Fully supports recursive nested fields
- ✅ Real-time JSON preview based on user input
- ✅ Built using React, TailwindCSS, and ShadCN UI for a modern and responsive UI
- React (with Vite)
- Tailwind CSS
- ShadCN UI (headless UI components)
- React Hook Form (for dynamic form management)
git clone https://github.com/Ayush2911ojha/HROne_frontend_task.git
cd HROne_frontend_task
npm install npm run dev
The app will run on http://localhost:3000
src/ ├── components/ # Reusable UI Components │ ├── FieldEditor.jsx │ ├── JSONPreview.jsx │ ├── pages/ │ └── JSONBuilder.jsx # Main Page │ ├── utils/ │ └── BuildJSON.js # Utility for JSON generation │ └── App.jsx
- Dynamic field management (add/edit/delete)
- Nested field support
- Real-time JSON preview
- Hosted + GitHub repo ready