NAME XML::XML2JSON - Convert XML into JSON (and back again) using XML::LibXML SYNOPSIS use XML::XML2JSON; my $XML = '<test><element foo="bar"/></test>'; my $XML2JSON = XML::XML2JSON->new(); my $JSON = $XML2JSON->convert($XML); print $JSON; my $RestoredXML = $XML2JSON->json2xml($JSON); DESCRIPTION I used Google for inspiration: http://code.google.com/apis/gdata/json.html In short: The response is r