Metadata-Version: 2.4
Name: jsonchecker
Version: 0.8.0
Summary: Script that validates JSON files and checks for duplicate keys.
Home-page: https://github.com/legoktm/jsonchecker
Author: Kunal Mehta
Author-email: legoktm@member.fsf.org
License: Public domain
Classifier: License :: Public Domain
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: OS Independent
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.1
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Classifier: Programming Language :: Python :: Implementation :: Jython
Classifier: Programming Language :: Python :: Implementation :: Stackless
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: license
Dynamic: summary

jsonchecker
===========
.. image:: https://travis-ci.org/legoktm/jsonchecker.svg?branch=master
   :alt: Build Status
   :target: 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 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.
