How to append records to a json object file in bash
I need to loop through a dictionary and append records to a json object file option.json the code I have is for K in "${!MYMAP[@]}"; do opt="{ "OptionName":"${K}", "Value":"${MYMAP[$K]}" }," echo $opt >> option.json done But this produce option.json as…