Skip to main content

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


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 details)

Uploaded Source

Built Distribution

json_analyze-0.3.0-py3-none-any.whl (4.3 kB view details)

Uploaded Python 3

File details

Details for the file json-analyze-0.3.0.tar.gz.

File metadata

  • Download URL: json-analyze-0.3.0.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for json-analyze-0.3.0.tar.gz
Algorithm Hash digest
SHA256 170e49d46f4b72f6273b10a9879bb3db1293303ca32532ede26ccfc172b9ffc7
MD5 4a3cf87b967aadcb24266a02952bb3b4
BLAKE2b-256 cfe8e1c3ab313d93ec04d7ea18655b09f280ccd9a59b11079f0bacb5480a8d26

See more details on using hashes here.

File details

Details for the file json_analyze-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: json_analyze-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 4.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

File hashes

Hashes for json_analyze-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5f161d0c5da6beed3c26b126436ab0e49cafa75d7ca61fc7cb9b42bd90aebdbe
MD5 d3600e4b5d9606b55037898fe79c8c92
BLAKE2b-256 9fbd871608cb0fc9f55ba58cc2ce33d9da20270ce1beb8e313f8e673d30736a6

See more details on using hashes here.

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