I am currently somehow frustated because I confused how to parse JSON in bash.
I do a basic cURL request to a restful API in the bash script and get a JSON array as response, which is looking like this with multiple entries:
[{"id":"012.mp4","language":"en","timestamp":1407517051,"name":"012.mp4"},{"id":"013.mp4","language":"en","timestamp":1407512051,"name":"013.mp4"}]
Now I have to parse this JSON array in my Bash script. My goal is to loop over all entries and (w)get the ressource specified with "name". So in this example above I would like to
wget 012.mp4
wget 013.mp4
I would appreciate any tips or snippets how to archive that. I don't even have any clue how to do it, I read something about using python but I have no idea of python.
in bashwhat would you want to do that to yourself? Using any higher level scripting language would make this so easy and clear and readable.