https://github.com/ashkan0201/json_or_txt
Python or json file recognition in Python and display the content of the files.
https://github.com/ashkan0201/json_or_txt
json python3 text
Last synced: 2 months ago
JSON representation
Python or json file recognition in Python and display the content of the files.
- Host: GitHub
- URL: https://github.com/ashkan0201/json_or_txt
- Owner: ashkan0201
- Created: 2023-09-04T12:08:31.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-10-06T01:21:22.000Z (over 2 years ago)
- Last Synced: 2025-06-14T02:02:13.603Z (about 1 year ago)
- Topics: json, python3, text
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Json_or_txt
Hello, I am Ashkan.
With this code, you understand the decorators, how we have used it for the code we presented?
Now I will explain about this code.
This code opens a file, then tries to read it as json, but if it encounters an error, the program understands that it should read it as text, and even if it encounters an error, it will show a message to the user.
## Installation
```bash
$ pip install json5
```
or
```bash
$ pip install -r requirements.txt
```
## My information
Email me if you see a bug:
- ashkan0211@gmail.com