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.2.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.2.tar.gz.
File metadata
- Download URL: jsontreeview-2.2.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 |
4844c692e52574a11c136c49d87b49a8aeca02c210f0c3bb26ead2b83629110a
|
|
| MD5 |
8409c9fdf60eca61254e3a2ac61ef80f
|
|
| BLAKE2b-256 |
92d87101161dfc82fef41ab1f169f7c023d866840b038bccfa735cedcf0bd336
|
File details
Details for the file jsontreeview-2.2-py3-none-any.whl.
File metadata
- Download URL: jsontreeview-2.2-py3-none-any.whl
- Upload date:
- Size: 3.7 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 |
cb47fca09f9a331535b1952468233e9a9181d7c1a910175f4ae831fc7466baa5
|
|
| MD5 |
dec8692a8cae9291bcc960d1b2a9aa90
|
|
| BLAKE2b-256 |
2f9ab870e9bee2442b066da29ad5857d42f301afa9b52f13b0d66274a4e3a036
|