My problem is I have one web-service which return the data in the json format I am using the following code to access the data
if ($datas = file_get_contents($url))
return json_decode($datas);
return Array('error' => "Can't open url");
//data when url is accessed in the browser
{"d":[[6.082,245]]}
I am getting the error can't open url. I am not getting the problem.Somehow I am not able to access the json_decode data and there are some function which are using the same functionality and the those are able to access the data
Thanks in advance