I have all of the JSON data in @attributes and want to extract it to variables using PHP.
What i am trying:
$url = "http://synd.cricbuzz.com/j2me/1.0/livematches.xml";
$xml = simplexml_load_file($url) or die("Error..");
$json = json_encode($xml, JSON_PRETTY_PRINT);
$decode_json = json_decode($json);
$match = $decode_json->match[0];
print_r($match);
Here is the output i get using above code: http://phpfiddle.org/main/code/3zbq-62w0
Any help will be appreciated. Thanks..