Problem with using json_encode() to transform XML into array.