title: Perl JSON how to get value of key
body: <p>I have the following json output and i'm trying to get the value of enabled </p>
  
  <pre><code>{  
     "_id":"sensor1",
     "_returned":1,
     "_embedded":{  
        "rh:doc":[  
           {  
              "_id":{  },
              "enabled":"true"
           }
        ]
     }
  }
  </code></pre>
  
  <p>I have tried the following</p>
  
  <pre><code>foreach my $x ( @{$vsConfig}) {
      print $x;
  }
  </code></pre>
  
  <p>I'm not sure why its not returning anything, isn't it a hash reference? </p>
  
  <p>Thanks </p>