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
Metadata
Release files for jsontreeview 2.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| jsontreeview-2.6.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| jsontreeview-2.6-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 6.1 kB
Release files / jsontreeview-2.6.tar.gz
| Download URL | jsontreeview-2.6.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
3eb87cd4c3b83847b7c17b6d96364ec3521d8290f48c228986f7e21956e22da5
|
|
BLAKE2b-256 checksum How to use checksums |
6620aa4189c2b2543913b9ea47834ae2c4e64853f92caa31d365e47e1b9e9082
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.0
|
Release files / jsontreeview-2.6-py3-none-any.whl
| Download URL | jsontreeview-2.6-py3-none-any.whl |
|---|---|
| Size | 3.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0aeb169e7f395fd7fbf3e8f0de268fba4d8ed3dec1ae4eb109089a3aabc1136d
|
|
BLAKE2b-256 checksum How to use checksums |
89a40d2e1a0e57a6498b8e6b52592c5bb7f0755e20c97a953d1ec89087ec1561
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.9.0
|