Skip to content

Instantly share code, notes, and snippets.

@freitzzz
Created September 10, 2023 12:48
Show Gist options
  • Save freitzzz/0f6d31a11b4fcda30a553264fa3a799d to your computer and use it in GitHub Desktop.
Save freitzzz/0f6d31a11b4fcda30a553264fa3a799d to your computer and use it in GitHub Desktop.
sourcify
#!/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