Skip to main content

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 Karuppasamypandiyarajk@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

  • ValidSUCCESS: Valid JSON format and [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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

check_json_format-1.0.2.tar.gz (8.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

check_json_format-1.0.2-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

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

Hashes for check_json_format-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6ff4cc92b9ac4c990d981ff735591737b3b7dddfd3584b9f09ae6351846f5021
MD5 f5a3fcb5c16f85a55e714eb60adfc840
BLAKE2b-256 5923c5c03ddda4caa6726dc8fb56ba39be15ec50f84c7014ec1716f0cbc8a511

See more details on using hashes here.

File details

Details for the file check_json_format-1.0.2-py3-none-any.whl.

File metadata

File hashes

Hashes for check_json_format-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 691cd3b740814bbd047cda7e60a39d963fadf4284a74e89c15c10d73fc6cde48
MD5 d5ea2ad63b135a159918ec0d1ed4212e
BLAKE2b-256 18117ab90cfc9d78e5d5ca857bdf294381eb9dfbfff780c692bfbd0a24b99c67

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page