title: Parse nested JSON in php
body: <p>I am trying to decode JSON string as follows-</p>
  
  <pre><code>&lt;?php
      $data = '{"hrm.com": { "a": "1",  "b": "c"  }}';
      $character = json_decode($data);
      $character = json_decode($character-&gt;hrm.com);
      echo $character-&gt;a;
  ?&gt;
  </code></pre>
  
  <p>I am getting the error</p>
  
  <pre><code>Undefined property: stdClass::$hrm
  </code></pre>
  
  <p>Any help?</p>