Hello,
I am trying to edit "inline" JSON streams, for instance as a part of a shell pipe line.
For those familiar, I am trying to replicate the functionality of JQ. In summary, this is having the ability to load JSON data from STDIN, while specifying a "transformation" as part of the command line arguments.
I have not found a way to use STDIN as data directly, because using STDIN negates the --exec argument.
This scenario forces the user to retreat to very weird shell tricks (store a whole JSON document in a variable so that it can be then passed as a --tla-* argument to the --exec program, or store it to intermediate files). I think this is awkward and non-scalable.
Is there something I am missing about this usage scenario?
Thank you,
Nikos