Step: Identity operator(.)
Identity operator(.)
The absolute simplest filter is .
This filter takes an input and produces identical output.
By default it also pretty-prints the value. So if you want to pretty-print your JSON - just apply filter .
Now Try that yourself.
On the left you see the input that you need to transform. One the right - the value we expect to see. Write your JQ expression in the "JQ Expression" box and click "Check" button.
Input:
Expected: