Extracting json object value in ansible
<p>I want to extract a value from the following json object in Ansible:</p>

<pre><code>"msg": {
       "NatGateway": {
           "CreateTime": "2016-10-03T17:46:07.548Z",
           "NatGatewayAddresses": [
               {
                   "AllocationId": "eipalloc-a22b9bc5"
               }
           ],
           "NatGatewayId": "nat-0d3b5a556c8a1c261",
           "State": "pending",
           "SubnetId": "subnet-5d353039",
           "VpcId": "vpc-eee3fe8a"
       }
   }
}
</code></pre>

<p>From the above json, I would like to extract only the value "0d3b5a556c8a1c261". How do I do that? I tried with regex, but so far no luck.</p>