The JSON Parser is a simple web application designed to parse JSON data. Users can either enter JSON data directly or upload a JSON file for parsing. The application provides a user-friendly interface to visualize and validate JSON structures.
- Enter JSON Data: Input JSON directly into a text area for immediate parsing.
- Upload JSON File: Upload a JSON file to parse its contents.
- Error Handling: The application provides feedback on parsing errors, making it easy to identify issues with the JSON data.
- Flask: A lightweight WSGI web application framework in Python.
- HTML/CSS: For the front end of the application.
- JavaScript: For interactivity and handling file uploads.
- Heroku: Deployed on Heroku for easy access and sharing.
To run this project locally, follow these steps:
-
Clone the Repository:
git clone https://github.com/Markkimotho/json-parser.git cd json-parser
-
Set Up a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Run the Application:
python app.py
-
Access the App: Open your web browser and go to http://127.0.0.1:5000/.
- Enter JSON Data: Paste your JSON data into the text area and click "Parse" to validate it.
- Upload JSON File: Click on the upload button to select a JSON file from your device. The app will parse the contents and display any errors or the parsed data.
This application is deployed on Heroku. You can access it at: JSON Parser
Contributions are welcome! If you have suggestions for improvements or want to report issues, please open an issue or submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.
Thanks to the John Crickett for the JSON Parser Challenge