A clone of jq
in Haskell.
You will find the description of the task on Brightspace.
> stack build
> stack install
this installs your executable to ~/.local/bin
by default (on *nix), make sure it's in $PATH
stack test
You will need jq
installed and available on $PATH
to run from-upstream
test suite.
> echo '{"this" : "that"}' | jq-clone '.this'
or
> echo '{"this" : "that"}' | stack run -- '.this'