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.4.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.4-py3-none-any.whl (3.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsontreeview-2.4.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.4.tar.gz
Algorithm Hash digest
SHA256 72fa545446eaa41bfa9a54a96a77ee6284afbc34fe53c1ff79713956b6a62253
MD5 5a3363f02240bec6bad89b2be58b4d06
BLAKE2b-256 e9d8212b3865e614bad488e12e12922f6e5f943939a0bb5017b7f8ac9cb05ac7

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsontreeview-2.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 3e6554fc2f28155623df5e664c01a9f8b9600a8a536becd71bc64b161a0136d0
MD5 6d9c088dacbcdd80af7379b59f44c102
BLAKE2b-256 2e3608531e039a9a25f0f6903e8fde2540c57f8300a7d97b7e4efbe6459b63ac

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