How to replace multiple values in json file using jq and returning the whole content
I have a json like this [{"version": 0.0,"Resources": [ {"TargetService": {"Type": "AWS::ECS::Service","Properties": {"TaskDefinition": "abc","LoadBalancerInfo": {"ContainerName": "def","ContainerPort": 8080}}}} ]}] My attempt is to replace TaskDefinition key value from "abc" to "123" and ContainerName key value from "def" to "456 in one…