Wstaw właściwość w pliku JSON z Bash

sed -i '$s/}/,\n"location":"canada"}/' sample.json
Gifted Gorilla