Py2Json
Date created
Jan 2026
A site for converting python dictionaries to JSON
Py2Json
Py2Json is a site I created to allow users to convert Python dictionaries to JSON. The project was built using Laravel, Tailwind, and Livewire.
Motivation
I created Py2Json as a simple tool to help developers quickly convert Python dictionaries to JSON format. This is particularly useful for developers who work APIs or want to quickly create test data in a JSON format.
Features
- Python to JSON Conversion: Users can input Python dictionaries and receive the corresponding JSON output.
- Copy to Clipboard: Users can easily copy the generated JSON to their clipboard for use
- Error messages: If a python dictionary is not valid or cannot be converted to JSON, the user will be shown an error message.
Technical Details
Backend
I built the backend of Py2Json using Laravel, a popular PHP framework. I used Laravel so I was able to use FluxUi for the UI components, which provides a consistent and modern look across the application.
The backend itself uses a small Python script to convert the Python dictionary to JSON. The script is executed using the Process function in PHP, which allows me to run the Python script and capture its output.
Frontend
As mentioned, one of the main reasons for using Laravel was to be able to use FluxUi for the UI components, which provides a consistent and modern look across my sites. The frontend is built using Tailwind CSS for styling and Livewire for dynamic, reactive components. This combination allows for a smooth user experience without the need for a full JavaScript framework, keeping the application lightweight and fast.
Deployment
Py2Json is deployed using Docker, which allows for easy scaling and management of the application. The deployment process is automated using GitHub Actions, ensuring that new features and updates can be rolled out quickly and reliably.