File: catjson.py

package info (click to toggle)
libcatmandu-fix-cmd-perl 0.0201-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 132 kB
  • sloc: perl: 56; java: 15; ansic: 15; lisp: 8; makefile: 8; python: 6
file content (9 lines) | stat: -rwxr-xr-x 158 bytes parent folder | download
1
2
3
4
5
6
7
8
9
#!/usr/bin/env python

import sys
import json

while 1 :
      line = sys.stdin.readline()
      data = json.loads(line.strip())
      print json.dumps(data)