If I have a json string in a bash script, how could I convert that into an array?
{ "name": "foo", "id": "123" } { "name": "bar", "id": "456" }
what I want is to be prompted w/ the name, and that tells me what ID (into a variable) that I need to use.
something like
pick your poison:
1) foo
2) bar
#?
If I select 1, then id 123 would go into variable X, else if I select 2 then id 456 would go into variable X