Turns a JSON file into a directory structure.
Project description
USAGE
json-to-dir <json-file> [output-directory]
output-directory defaults to somewhere in /tmp.
EXAMPLE
fiatjaf@menger ~> echo '[{"x": 23}, {"y": "23", "www": {"lll": "qwlekwq"}}]' > file
fiatjaf@menger ~> ./json-to-dir file
file written to /tmp/tmpXv1f5X.
fiatjaf@menger ~> tree /tmp/tmpXv1f5X/
/tmp/tmpXv1f5X/
├── 0
│ └── x
└── 1
├── www
│ └── lll
└── y
3 directories, 3 files
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
json-to-dir-1.2.tar.gz
(1.7 kB
view details)
Built Distribution
File details
Details for the file json-to-dir-1.2.tar.gz
.
File metadata
- Download URL: json-to-dir-1.2.tar.gz
- Upload date:
- Size: 1.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | e6a2a718ecb6b0eb278dc007ebd69cd836bc7fc66a022abd3ace377a3de43248 |
|
MD5 | 52549fd6b5b43368a07f2f58ceebbd09 |
|
BLAKE2b-256 | da34d2fec4fadca5fef041508d3d129cfa23d9cf2de64233b19d4a1197e78e96 |
File details
Details for the file json_to_dir-1.2-py3-none-any.whl
.
File metadata
- Download URL: json_to_dir-1.2-py3-none-any.whl
- Upload date:
- Size: 2.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.6.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | cd79a2c15d1a9925d751620203852215875882ee7e201d62fbff54d4e17679ac |
|
MD5 | 01f9e506e8af7bdc193b21e736ffad81 |
|
BLAKE2b-256 | d5a3707f72f08f69e696c9a4b790c60c7bae0bbd12e93fd2b67dbd5d826056d5 |