A colleague of mine is working on some program in VS Code. He debugs/tests it by running it with a certain command line, encoded in his /path/to/repo/.vscode/launch.json file. The global JSON object there has a configuration element, which is an array; and each element of this array has program and 'args` keys, with the latter being an array of strings. For example:
{
"configurations": [
{
"name": "myprog",
"args": [ "foo1", "bar1",
"foo2", "bar2"
"etc", "andsoon" ],
etc. etc.
My question: I can use awk, or maybe even just sed and do some naive string processing to only get the program and args. But is there a less brute-force mechanism for achieving that?
Note: I want to do it from a bash shell session / in a script, not from some IDE.