Skip to main content

A simple python program for viewing JSON data more clearly

Project description

JsonTreeView

A simple python program for viewing JSON data more clearly

How to use

from jsontreeview import treeView
...
# Works for both dict and list types
treeView(obj, output="out.txt") # optional output file argument, default is stdout

Example

Input:

{"glossary":{"title":"exampleglossary","GlossDiv":{"title":"S","GlossList":{"GlossEntry":{"ID":"SGML","SortAs":"SGML","GlossTerm":"StandardGeneralizedMarkupLanguage","Acronym":"SGML","Abbrev":"ISO8879:1986","GlossDef":{"para":"Ameta-markuplanguage,usedtocreatemarkuplanguagessuchasDocBook.","GlossSeeAlso":["GML","XML"]},"GlossSee":"markup"}}}}}

Output:

["glossary"]:
 -["title"]: str
 -["GlossDiv"]:
  --["title"]: str
  --["GlossList"]:
   ---["GlossEntry"]:
    ----["ID"]: str
    ----["SortAs"]: str
    ----["GlossTerm"]: str
    ----["Acronym"]: str
    ----["Abbrev"]: str
    ----["GlossDef"]:
     -----["para"]: str
     -----["GlossSeeAlso"]:
      ----->[0]: str
      ----->[1]: str
    ----["GlossSee"]: str

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

jsontreeview-2.3.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsontreeview-2.3-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

Details for the file jsontreeview-2.3.tar.gz.

File metadata

  • Download URL: jsontreeview-2.3.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for jsontreeview-2.3.tar.gz
Algorithm Hash digest
SHA256 429232a59ffc4b36e66ae48f8e2e21c771ae460fc4a2fb8b1d72138b0a6642ce
MD5 84b58fcc00f3f53f7e8b7ab379804012
BLAKE2b-256 cf4f3f606b5154735ae17775073e379ca655e6464b2161dd1958298380732655

See more details on using hashes here.

File details

Details for the file jsontreeview-2.3-py3-none-any.whl.

File metadata

  • Download URL: jsontreeview-2.3-py3-none-any.whl
  • Upload date:
  • Size: 3.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.0

File hashes

Hashes for jsontreeview-2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 7c0022dc67a6bc733c6c6f961461e4aebca225908c44391521eb9213137cb733
MD5 e93a37424958c4902267aab874b2d2f6
BLAKE2b-256 2f10c3177b1131ec1531e7d49668861c78b5da78b864e8af267073e80e11af31

See more details on using hashes here.

Supported by

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