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/```
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.
Released into the public domain.
====
[![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/```
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.
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.4.tar.gz
(2.1 kB
view hashes)