example.json
{ "first": "one", "second": "two" }
Добавить ключ-значение:
jq '. += {"third": ["tree=3"]}' example.json
Удалить ключ-значение:
jq 'del(."third")' example.json