Good to know about how to transform an xml document into json:
<?php $xml = simplexml_load_string($xml_string,'SimpleXMLElement',LIBXML_ NOCDATA); $json = json_encode($xml); $array = json_decode($json,TRUE);
Source: http://us1.campaign-archive1.com/?u=b39a511bbe71aa74d27241bb6&id=fc98d2294c&e=b11ae40681
As usual…a really useful tip..thanks Adrian