A small tool to check JSON data for structural and data inconsistencies.
Project description
json-analyze
A small tool to check JSON data for structural and data inconsistencies.
Given this JSON object:
{
"a": [1,2,3,"hi"],
"c": [
123,
2.34,
"bye",
[],
{},
{"a": 123},
{"a": null}
]
}
Executing json-analyze -f example.json
will display:
Key Type Values Distinct Min Max
-------- -------- -------- ---------- ------------ ------------
$ Dict 1 1 Dict(size=2) Dict(size=2)
$.a Iter 1 1 Iter(size=4) Iter(size=4)
$.a[*] int 3 3 1 3
str 1 1 hi hi
$.c Iter 1 1 Iter(size=7) Iter(size=7)
$.c[*] float 1 1 2.34 2.34
int 1 1 123 123
Dict 3 2 Dict(size=0) Dict(size=1)
Iter 1 1 Iter(size=0) Iter(size=0)
str 1 1 bye bye
$.c[*].a NoneType 1 1
int 1 1 123 123
Development
black .
rm -rv dist/
python setup.py sdist bdist_wheel
twine upload dist/*
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json-analyze-0.3.0.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for json_analyze-0.3.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5f161d0c5da6beed3c26b126436ab0e49cafa75d7ca61fc7cb9b42bd90aebdbe |
|
MD5 | d3600e4b5d9606b55037898fe79c8c92 |
|
BLAKE2b-256 | 9fbd871608cb0fc9f55ba58cc2ce33d9da20270ce1beb8e313f8e673d30736a6 |