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

Uploaded Python 3

File details

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

File metadata

  • Download URL: jsontreeview-2.5.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.5.tar.gz
Algorithm Hash digest
SHA256 8e4801fd8ce4ade2ada2282bd61b229fe233d40e1e8bc9cb6825dadcb8ff4e00
MD5 b8dbc2a648c8a75ae3533103efcd1126
BLAKE2b-256 2a96d86bc95ed431405b6221dd286def68df2448f89eb6322e9785ca8409ea2d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: jsontreeview-2.5-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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 431a2455e54c8ca434d0eaa46f8e6d2e9f4df7654443e095d340fed1533643a5
MD5 0f7603e1efa081d8bca138b8f060f40a
BLAKE2b-256 6c2486e2db34570fea1bbe03e3bc9ec7188351d4fc87bc233814be398c5e5cc9

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