Does anyone know of a clean way to covert XML directly to JSON? I'm currently using SimpleXMLElement to convert the tree to JSON, so I'm wondering if I can or if its even worth eliminating the middle-man.