Crates.io | leaktk-jf |
lib.rs | leaktk-jf |
version | 0.0.0 |
source | src |
created_at | 2022-12-15 14:02:22.660201 |
updated_at | 2022-12-15 14:02:22.660201 |
description | A util/lib for writing JSON to disk as separate files |
homepage | https://github.com/leaktk/jf |
repository | https://github.com/leaktk/jf |
max_upload_size | |
id | 737901 |
size | 8,221 |
A utility/lib for taking JSON and converting it to a directory tree for scanning.
This project isn't ready yet.
TODO:
info!
statmentsNice to Have:
--valid-key-regex
flag that
defaults to ^[\w\-\+]+$
.A dir full of only numbers with no missing numbers in a range would be parsed as an array.
$ rm -rf /tmp/jf-example
$ curl https://api.github.com/events | cargo run -- /tmp/jf-example/gh-events
Writing /tmp/jf-example/gh-events/0/actor
Writing /tmp/jf-example/gh-events/0/actor/avatar_url
Writing /tmp/jf-example/gh-events/0/actor/display_login
Writing /tmp/jf-example/gh-events/0/actor/gravatar_id
Writing /tmp/jf-example/gh-events/0/actor/id
Writing /tmp/jf-example/gh-events/0/actor/login
Writing /tmp/jf-example/gh-events/0/actor/url
Writing /tmp/jf-example/gh-events/0/created_at
Writing /tmp/jf-example/gh-events/0/id
Writing /tmp/jf-example/gh-events/0/payload
Writing /tmp/jf-example/gh-events/0/payload/before
Writing /tmp/jf-example/gh-events/0/payload/commits
Writing /tmp/jf-example/gh-events/0/payload/commits/0/author
Writing /tmp/jf-example/gh-events/0/payload/commits/0/author/email
...snip...
Files written to /tmp/jf-example/gh-events