A simple command-line tool to explore and view JSON datasets.
This project allows users to interactively select and view JSON data files containing different types of information such as albums, comments, posts, and users.
- Interactive menu to choose from available datasets
- View complete JSON data with formatted output
- Extract and display specific fields from the data
- User-friendly prompts for navigation
/workspace
├── main.py # Main application script
├── errors.py # Error handling utilities
├── data/ # Directory containing JSON data files
│ ├── albums.json
│ ├── comments.json
│ ├── posts.json
│ └── users.json
└── README.md # This file
-
Run the main script:
python main.py
-
Select a dataset from the menu options (1-4):
- Albums
- Comments
- Posts
- Users
-
View the complete dataset or choose to see specific fields
- Python 3.x
- No external dependencies required (uses standard library modules:
json,pathlib)
- The program presents a menu of available JSON datasets
- User selects a dataset by entering the corresponding number
- The selected JSON file is loaded from the
data/directory - Data is displayed in a formatted manner
- Optionally, users can request to see specific fields from the data