Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
AnotherAn alternative to slurping using the -s command-line option is to use the inputs variablefilter. Like so jq '[inputs] | add':
inputs
jq '[inputs] | add'
jq -n '[inputs] | add'
This will produce an object with all the input objects combined.
Another alternative to slurping is to use the inputs variable. Like so jq '[inputs] | add' will produce an object with all the input objects combined.
An alternative to slurping using the -s command-line option is to use the inputs filter. Like so: