extphp/xml-to-json (packagist): An XML to JSON converter that will properly preserve attributes.
Keywords: json|xml|converter