π JSON Table Management with JavaScript
A simple web application built using HTML, CSS, and Vanilla JavaScript that allows users to view, add, update, delete, and search records stored in a JSON array.
This project demonstrates dynamic table rendering and JSON data manipulation without using any external frameworks or libraries (no React, Angular, Vue, jQuery, etc.).
π Features
Display JSON Data Renders a JSON array into an interactive HTML table.
Add Row Users can add a new record by entering ID, Name, and Email in the form.
Prevents duplicate IDs
Validates email format
Update Row
Each row has an Edit button
Clicking Edit loads the row values into the form
The form button changes to Update Row mode
Changes are saved back into the JSON and the table is refreshed
Delete Row
Remove a row by clicking the Delete button
Data is updated instantly
Search/Filter
Search by Name or Email dynamically
Table updates in real-time as you type
Validation
Prevents invalid email formats
Prevents duplicate IDs
Responsive Design (Optional)
Table and form scale well on small screens (with CSS tweaks).
π οΈ Tech Stack
HTML5 β Structure of the app
CSS3 β Basic styling and responsiveness
JavaScript (ES6) β Core logic for rendering, updating, and deleting
π Project Structure json-table-project/ β βββ index.html # Main HTML file (UI structure) βββ index.js # JavaScript logic (render, add, update, delete) βββ index.css # CSS styles (optional)
π Getting Started
Clone or download the project folder.
git clone https://github.com/sujjwal21/vspagy cd vspagy
Open index.html in your browser (double-click or right-click β "Open with browser").
Youβll see a table with sample JSON data and a form to add/edit rows.
πΈ Screenshots (Optional)
Add screenshots of your table UI here if you want.
β¨ Example Dataset [ { "id": 1, "name": "John Doe", "email": "john@example.com" }, { "id": 2, "name": "Jane Smith", "email": "jane@example.com" } ]
π Usage Guide
Add Row
Enter a unique ID, a name, and a valid email.
Click Add Row to insert into the table.
Edit Row
Click Edit on any row.
The form will be pre-filled with row values.
Make changes and click Update Row.
Delete Row
Click Delete on any row to remove it.
Search
Type in the search box to filter results by name or email.