json4shell
json4shell copied to clipboard
[Abandoned project] Set of utilities for shell for json processing
Found need for 'substitute' mode - add/replace element of object (inside array) based on output of program with specified args. Example: [ { "uuid": , "data": }, ... ] cat...
Current json-iterate output: ``` echo '[1,2,3,4]'| ./json-iterate -j echo {} {"returncode": 0, "stderr": "", "stdout": "1\n"} {"returncode": 0, "stderr": "", "stdout": "2\n"} {"returncode": 0, "stderr": "", "stdout": "3\n"} {"returncode": 0,...
Maybe make integration tests directly with shell testing frameworks, instead of python? `bin_tests.py` currently implemented with python, and it's not very handy to edit and maintain. Some shell testing framework...
Not always stdin give you all data instantly. So instead of waiting EOF, would be better to process json instantly. Some implementations of json readers with stream support: https://github.com/dominictarr/JSONStream https://pykler.github.io/yajl-py/...