Using JQ how to append entry to dictionary type array in JSON or create it if array doesn't exist?
I have ideal JSON: { "environments":[ { "name":"test", "release":"2.0" }, { "name":"prod", "release":"1.0" }, ] } This file could be in any state: It can be empty file with just empty object { } It can have empty "environemnts" array…