This is a simple web application that allows you to submit JSON data through a web form and displays the submitted JSON in a formatted manner.
To run this project locally, follow these steps:
git clone https://github.com/Anandkr21/assignment-ExactSpace.git
cd your-project-name
npm install
node index.js
5. Open your browser and go to http://localhost:3000 to access the web application.
- In the "Input box," enter valid JSON data into the textarea.
- Click the "Submit" button to submit the JSON data.
- The submitted JSON will be displayed in the "Output box" below, formatted for better readability.
- Node.js
- Express.js
- HTML
- CSS
- JavaScript
POST /post
: Handles JSON data submission. If the data is valid JSON, it responds with the same JSON data. If the data is not valid JSON, it returns an error message.
Contributions are welcome! If you find any issues or have suggestions, feel free to open an issue or submit a pull request.
If you have any questions or feedback, you can reach out to [email protected].