Validate JSON files for format correctness and duplicate keys.
Project description
check_json_format
Validate JSON files for format correctness and duplicate keys.
Author
Pandiyaraj Karuppasamy — pandiyarajk@live.com
Install
pip install check-json-format
Requirements
- Python 3.6+
- No external dependencies (standard library only)
Usage
check-json-format <json_file_path>
Or as a module:
python -m check_json_format <json_file_path>
Example:
check-json-format config.json
What it does
- Format validation — Valid JSON syntax (brackets, commas, etc.).
- Duplicate keys — Reports duplicate keys in objects (including nested).
- Errors — Handles missing files, permission errors, and encoding issues.
Output
- Valid —
SUCCESS: Valid JSON formatand[SUCCESS] No duplicate keys found. - Invalid — Parser error details.
- File issues — Clear messages for not found, permission denied, or encoding errors.
License
MIT — see LICENSE.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file check_json_format-1.0.2.tar.gz.
File metadata
- Download URL: check_json_format-1.0.2.tar.gz
- Upload date:
- Size: 8.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6ff4cc92b9ac4c990d981ff735591737b3b7dddfd3584b9f09ae6351846f5021
|
|
| MD5 |
f5a3fcb5c16f85a55e714eb60adfc840
|
|
| BLAKE2b-256 |
5923c5c03ddda4caa6726dc8fb56ba39be15ec50f84c7014ec1716f0cbc8a511
|
File details
Details for the file check_json_format-1.0.2-py3-none-any.whl.
File metadata
- Download URL: check_json_format-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
691cd3b740814bbd047cda7e60a39d963fadf4284a74e89c15c10d73fc6cde48
|
|
| MD5 |
d5ea2ad63b135a159918ec0d1ed4212e
|
|
| BLAKE2b-256 |
18117ab90cfc9d78e5d5ca857bdf294381eb9dfbfff780c692bfbd0a24b99c67
|