title: Change value of an object in JSON based on another key value - shell
body: <p>in shell I have the following object</p>
  
  <pre><code>[
  {
    "ParameterKey":"a",
    "ParameterValue":"1"
  },
  {
    "ParameterKey":"b",
    "ParameterValue":"2"
  },
  {
    "ParameterKey":"c",
    "ParameterValue":"3"
  },
  {
    "ParameterKey":"d",
    "ParameterValue":"4"
  }
  ]
  </code></pre>
  
  <p>I need to find out how to access the ParameterKeys 'b' and 'd' in an optimal way (WITHOUT using array indexes) using e.g. jq so that the resulting array would be:</p>
  
  <pre><code>[
  {
    "ParameterKey":"a",
    "ParameterValue":"1"
  },
  {
    "ParameterKey":"b",
    "ParameterValue":"5"
  },
  {
    "ParameterKey":"c",
    "ParameterValue":"3"
  },
  {
    "ParameterKey":"d",
    "ParameterValue":"6"
  }
  ]
  </code></pre>