Formatted the JSON/XML outputs.