Open HaanJde opened 5 months ago
During developing a larger solution, unexpected output was generated.
Minimal test case:
echo '{"a":{"b":"g"}}{"a":{"c":"h"}}{"a":{"d":"i"}}{"e":{"f":"j"}}' | jq 'inputs' { "a": { "c": "h" } } { "a": { "d": "i" } } { "e": { "f": "j" } }
The expected output was
{ "a": { "b": "g" } } { "a": { "c": "h" } } { "a": { "d": "i" } } { "e": { "f": "j" } }
Invoke with -n option not to read the first value as query input; jq -n 'inputs'.
-n
jq -n 'inputs'
Bug description
During developing a larger solution, unexpected output was generated.
Reproduction
Minimal test case:
Expected behavior
The expected output was
Environment