Created
September 10, 2023 12:48
-
-
Save freitzzz/0f6d31a11b4fcda30a553264fa3a799d to your computer and use it in GitHub Desktop.
sourcify
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
import sys | |
import json | |
formatted = list(map(lambda x: x.replace('"', '\"'), sys.stdin.read().splitlines())) | |
print(json.dumps(formatted, indent=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment