title: Replace value in json during run time
body: <p>I am trying to replace value on run time in json i.e. </p>
  
  <p>Old</p>
  
  <pre><code>{
    "containerDefinitions": [{
      "name": "containername",
      "image": "myimage",
      "memory": 512,
      "cpu": 1,
      "essential": true,
      "portMappings": [{
        "hostPort": 80,
        "containerPort": 80,
        "protocol": "tcp"
      }]
    }],
    "volumes": [],
    "family": "containername"
  }
  </code></pre>
  
  <p>New should be </p>
  
  <pre><code>{
    "containerDefinitions": [{
      "name": "containername",
      "image": "new image",
      "memory": 512,
      "cpu": 1,
      "essential": true,
      "portMappings": [{
        "hostPort": 80,
        "containerPort": 80,
        "protocol": "tcp"
      }]
    }],
    "volumes": [],
    "family": "containername"
  }
  </code></pre>
  
  <ul>
  <li>Old value: - "image": "myimage"</li>
  <li>New Value: - "image": "new image"</li>
  </ul>
  
  <p>I want to do in bash. Is there any best way to do? Can we do through jq?</p>