Insira a propriedade no arquivo json com bash
sed -i '$s/}/,\n"location":"canada"}/' sample.json
Gifted Gorilla
sed -i '$s/}/,\n"location":"canada"}/' sample.json