parsexml: Arrange objects into array and dump valid JSON
parsexml: Arrange objects into array and dump valid JSON

Previously we weren't dumping the array representation which
made JSON parsing of the process output fail

smspillaz/pubmed-retraction-analysis,smspillaz/pubmed-retraction-analysis,smspillaz/pubmed-retraction-analysis,smspillaz/pubmed-retraction-analysis