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.1.tar.gz
(3.0 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsontreeview-2.1.tar.gz.
File metadata
- Download URL: jsontreeview-2.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2bfd5b962d3c5cab396a92c8c154cea548ce3b60db8c36d67ede3abb00a2beb1
|
|
| MD5 |
f4685e47135ae443942e363a9e7510f3
|
|
| BLAKE2b-256 |
438e16f4f2efa3fcbc64120e259aaf03150e228c0474694ea3ed1a1224d60abb
|
File details
Details for the file jsontreeview-2.1-py3-none-any.whl.
File metadata
- Download URL: jsontreeview-2.1-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6f7d9c8913afec3ef68825fa42d9ca387ce8dda2b9fc55c9d7a47c6ff09f3783
|
|
| MD5 |
3045b22fc5c01a55d11d260566ff1be4
|
|
| BLAKE2b-256 |
f32ca444d63407d8d519e6e7427f3dc29e9443464bc13e56765f4bfacfb63082
|