mirror of
https://gitlab.com/gnuwget/wget2.git
synced 2026-01-14 02:01:39 +00:00
11 lines
241 B
Python
Executable File
11 lines
241 B
Python
Executable File
#!/usr/bin/env python
|
|
|
|
import sys
|
|
import csv
|
|
import json
|
|
|
|
if __name__=="__main__":
|
|
reader = csv.DictReader(sys.stdin)
|
|
output = json.dumps([r for r in reader], sort_keys=False, indent=4, separators=(',', ': '))
|
|
sys.stdout.write(output)
|