Skip to main content

A script that validates JSON files and checks for duplicate keys.

Project description

jsonchecker
====
[![Build Status](https://travis-ci.org/legoktm/jsonchecker.svg?branch=master)](https://travis-ci.org/legoktm/jsonchecker)

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

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

Usage:

* ```jsonchecker file_to_validate.json```

* ```jsonchecker directory/of/json/files/```

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

Released into the public domain.

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

jsonchecker-0.3.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

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