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

Iterating through JSON array in Shell script

$
0
0

I have a JSON data as follows in data.json file

[  {"original_name":"pdf_convert","changed_name":"pdf_convert_1"},  {"original_name":"video_encode","changed_name":"video_encode_1"},  {"original_name":"video_transcode","changed_name":"video_transcode_1"}]

I want to iterate through the array and extract the value for each element in a loop. I saw jq. I find it difficult to use it to iterate. How can I do that?


Viewing all articles
Browse latest Browse all 657

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>