Quantcast
Channel: Active questions tagged jq - Stack Overflow
Viewing all articles
Browse latest Browse all 657

How parse json value into array with jq

$
0
0

I have this

{ "1": { "Split": { "result": "first_image" } }, "2": { "Split": { "result": "second_image" } } }

I tried .[].Split.result but it gives be below result;

"first_image""second_image"

but I want below output

I want the below output

["first_image","second_image"]


Viewing all articles
Browse latest Browse all 657

Trending Articles