title: sending json from andriod to php using get or post method and exatract the values of json in php
body: <p>I can send json from android to php but i'm unable to extract the data from json object in php. Can anyone help me to that in php?</p>
  
  <p>I tried json_decode($json)  to decode the json data.</p>
  
  <p>What I was doing is I'm sending json object from android in get method and receiving the data in php side like this..
  <code>&lt;?php
  $json=$_GET['data'];
  $d_json=json_decode($json) or json_decode($json,true);
  ?&gt;</code></p>
  
  <p>but when I was trying to access "$d_json['meal'][0]['name]" or 
  "$d_json->meal[0]->name" it was showing illegal index.</p>