[go: up one dir, main page]

File: json2yaml.py

package info (click to toggle)
duktape 2.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,496 kB
  • sloc: ansic: 203,676; python: 5,856; makefile: 476; cpp: 205
file content (5 lines) | stat: -rw-r--r-- 207 bytes parent folder | download | duplicates (4)
1
2
3
4
5
import os, sys, json, yaml

if __name__ == '__main__':
    # Use safe_dump() instead of dump() to avoid tags like "!!python/unicode"
    print(yaml.safe_dump(json.load(sys.stdin), default_flow_style=False))