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.

Supported by

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