0.0.2 • Published 8 years ago

iter-json v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
8 years ago

iter-json

Imagine you have a file with an enourmous JSON array and you want to quickly execute shell commands for each item in the array, starting at index 7 and ending at index 48.

And you have jq or similar.

And fish.

for item in (cat json-data.json | jq '.list-of-items[7:48]' | iter-json)
    set value (echo $item | jq '.somekey')
    # do something
end
0.0.2

8 years ago

0.0.1

8 years ago