new tool
[hband-tools.git] / user-tools / xml2json
blobde72507691ca3f0ada9570dd933b4c8bd5563119
1 #!/usr/bin/env python
3 """
4 =pod
6 =head1 NAME
8 xml2json - Convert XML input to JSON
10 =cut
12 """
14 import sys
15 import xmltodict
16 import json
18 print(json.dumps(xmltodict.parse(''.join(sys.stdin.readlines()))))