mirror of https://github.com/svaarala/duktape.git
Sami Vaarala
10 years ago
2 changed files with 9 additions and 0 deletions
@ -0,0 +1,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)) |
@ -0,0 +1,4 @@ |
|||
import os, sys, json, yaml |
|||
|
|||
if __name__ == '__main__': |
|||
print(json.dumps(yaml.load(sys.stdin))) |
Loading…
Reference in new issue