Library for pretty printing json data to txt files
Project description
json2txttree
Python code that converts JSON data to tree-like output for documentation or pretty printing
Usage
import json
from json2txttree import json2txttree
# Load json data
with open('sample.json', 'r') as f:
jsonData = json.load(f)
# Pretty print json hierarchy as a tree
print(json2txttree(jsonData))
└─ (object)
├─ "name" (string)
├─ "age" (number)
├─ "languages" (array)
│ └─ (string)
├─ "subjects" (object)
│ ├─ "Math" (number)
│ └─ "Science" (number)
└─ "ids" (array)
└─ (object)
├─ "name" (string)
└─ "number" (string)
0.1.0 (2022-03-18)
Initial release.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
json2txttree-1.0.4.tar.gz
(3.3 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 json2txttree-1.0.4.tar.gz.
File metadata
- Download URL: json2txttree-1.0.4.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1a773ee85ac3b3de7ae0db1ec3fe82133f200a10ecc049f5e8009adb310e368e
|
|
| MD5 |
9b00e420c2d7d2c64e0f9cd577bb9d69
|
|
| BLAKE2b-256 |
5845b25b7e79b7f13f81a7720bf78f8d4959c095d4518bf3255af27aec437ba2
|
File details
Details for the file json2txttree-1.0.4-py3-none-any.whl.
File metadata
- Download URL: json2txttree-1.0.4-py3-none-any.whl
- Upload date:
- Size: 3.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.6.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
606e0f0009972ee61d86bc80dc98b1943f530900cb766a9cda09ed700446a3c4
|
|
| MD5 |
79041598f442ec9f0569c520ed865023
|
|
| BLAKE2b-256 |
54527556620b2d025ee9a95c4b168f63b57c69e343a6e19d3675854b9090ae46
|