GEdit JSON & XML Formatter
Open Gedit: external tools config
#!/usr/bin/env python3
import json
import sys
j = json.load(sys.stdin)
print(json.dumps(j, sort_keys=False, indent=4))
#!/usr/bin/env python3
import sys
import xml.dom.minidom
result = ''
for line in sys.stdin:
result += line.strip()
dom = xml.dom.minidom.parseString(result)
print(dom.toprettyxml())