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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsontreeview-2.6.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.6.tar.gz
Algorithm Hash digest
SHA256 3eb87cd4c3b83847b7c17b6d96364ec3521d8290f48c228986f7e21956e22da5
MD5 465a1f006b9bf42fb254fe0524b3361c
BLAKE2b-256 6620aa4189c2b2543913b9ea47834ae2c4e64853f92caa31d365e47e1b9e9082

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsontreeview-2.6-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.6-py3-none-any.whl
Algorithm Hash digest
SHA256 0aeb169e7f395fd7fbf3e8f0de268fba4d8ed3dec1ae4eb109089a3aabc1136d
MD5 bdc89d717ff847b70f13fe23b286817f
BLAKE2b-256 89a40d2e1a0e57a6498b8e6b52592c5bb7f0755e20c97a953d1ec89087ec1561

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