title: PHP Loop through JSON String from POST request
body: <p>How do l loop through this JSON String in PHP and get all the URLS?</p>
  
  <pre><code>{
      "item": "1.2.840.113619.2.55.1.1762903756.1942.1319006898.442",
      "title": [{
              "images": "{'1.2.840.113619.2.55.1.1762903756.1942.1319006898.446.1':{'url': 'https:www.example11.com', 'observationTime': 'None'}}"
          },
          {
              "images": "{'1.2.840.113619.2.55.1.1762903756.1942.1319006898.446.1':{'url': 'https:www.example33.com', 'observationTime': 'None'}, '1.2.840.113619.2.55.1.1762903756.1942.1319006898.446.55':{'url': 'https:www.example44.com', 'observationTime': 'None'}, '1.2.840.113619.2.55.1.1762903756.1942.1319006898.446.99':{'url': 'https:www.example55.com', 'observationTime': 'None'}}"
          },
          {
              "images": "{'1.2.840.113619.2.55.1.1762903756.1942.1319006898.446.1':{'url': 'https:www.example66.com', 'observationTime': 'None'}}"
          }
      ]
  }
  </code></pre>
  
  <p><strong>Tried the following and it didn't work</strong></p>
  
  <pre><code>$data=json_decode ($stringBody,TRUE);
  for($i=0; $i&lt;count($data['title']); $i++) {
    $data=$data['title'];
  
     foreach($data as $obj){
       $imagesData =$obj['images'];
  
        foreach($imagesData as $value){
            print "&lt;p&gt;" . $value-&gt;url  . "&lt;/p&gt;";
        }
  
     }
  }
  </code></pre>
  
  <p>Thanks for your help.</p>