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.0.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.0.tar.gz.
File metadata
- Download URL: jsontreeview-2.0.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 |
3e51717776096e87397bb763e53c0b481d2de8147a27b14ca0252ffa50676d70
|
|
| MD5 |
99a2426da32842030be88366fc3ea8e8
|
|
| BLAKE2b-256 |
7e1a6ba995c33bd140921a1d8837e98230186e2e0286f5200e2b22d31ed99c33
|
File details
Details for the file jsontreeview-2.0-py3-none-any.whl.
File metadata
- Download URL: jsontreeview-2.0-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 |
2fd0ba5291e65d1e69392c59fbaa316099aac90f8df7712ff8785257ef3745a5
|
|
| MD5 |
b398de4d1a73c6d444207bd71edf1610
|
|
| BLAKE2b-256 |
fe549df780e349681110bbc77286cd53cbd81d8d7bcd51c167216ab7f78900fa
|