Skip to main content

jsonchecker

Build Status

Checks a JSON file for any duplicate keys, which would be ignored by the normal parser.

Inspired by and based off of a python-list mailing list post: <https://mail.python.org/pipermail/python-list/2013-May/660874.html>.

Dependencies:

  • Python 2.7 or Python 3

Installation:

  • pip install jsonchecker

Or:

  • git clone https://github.com/legoktm/jsonchecker.git && cd jsonchecker && python setup.py install

Usage:

  • jsonchecker file_to_validate.json

  • jsonchecker directory/of/json/files/

An optional --quiet argument can be passed, and will cause the script to print out a . instead of the full filename for each file scanned. Useful if you plan on checking a large number of files.

The script will exit with a status code of 1 if any duplicate keys are found, 0 if none are.

An optional --values argument can be passed to additionally check for duplicate values within each key. The script will exit with a status code of 1 if there are either duplicate keys or duplicate values are found, 0 if none are.

Released into the public domain.

Metadata

Release files for jsonchecker 0.8.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for jsonchecker 0.8.0
File Size Uploaded Provenance Actions
jsonchecker-0.8.0.tar.gz 3.5 kB Without provenance Details for jsonchecker-0.8.0.tar.gz

Release files / jsonchecker-0.8.0.tar.gz

Download URL jsonchecker-0.8.0.tar.gz
Size 3.5 kB
Tags Source
SHA-256 checksum
How to use checksums
dd1883b13640a5abda36f3829adc69c4b047393f17a4fbb6cee1b6d24b13d540
BLAKE2b-256 checksum
How to use checksums
71ab5128e2a3a58ef02adb0bc3d768865db7c881a9defea459bfdab3995e4e51
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for jsonchecker 0.8.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page